org.halfdog.io.parport
Class LinuxSequence

java.lang.Object
  extended byorg.halfdog.io.parport.LinuxSequence
All Implemented Interfaces:
Sequence

public class LinuxSequence
extends java.lang.Object
implements Sequence


Constructor Summary
protected LinuxSequence()
           
 
Method Summary
 int addStep(int command, int value, int wait)
          Add a new step to the end of a sequence.
 void clear()
           
protected  byte[] getSequence()
          Get the binary sequence data representing this LinuxSequence.
protected  boolean[] getStatusExpects()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LinuxSequence

protected LinuxSequence()
Method Detail

clear

public void clear()
Specified by:
clear in interface Sequence

addStep

public int addStep(int command,
                   int value,
                   int wait)
Add a new step to the end of a sequence.

Specified by:
addStep in interface Sequence
Parameters:
wait - the number of microseconds to wait after execution of the command.
Returns:
the number of the step in the sequence

getSequence

protected byte[] getSequence()
Get the binary sequence data representing this LinuxSequence.

Returns:
data suitable to be sent to the linux parport device driver.

getStatusExpects

protected boolean[] getStatusExpects()