All Packages Class Hierarchy This Package Previous Next Index
Class guinea.logic.Sequence
java.lang.Object
|
+----guinea.logic.Sequence
- public class Sequence
- extends Object
- implements Serializable
A sequence is a list of samples and optional
pauses between samples. Sequences are used to play a fixed sample
sequence to the test subject. A sequence is a list of
sequence items that define sample names and a
optional pause.
- See Also:
- SequenceItem
Constructor Index
- ·
Sequence()
- Construct a new empty sequence.
Method Index
- ·
addSequenceItem(int, String)
-
- ·
addSequenceItem(SequenceItem)
-
- ·
addSequenceItem(String)
-
- ·
elements()
-
- ·
main(String[])
-
- ·
sequenceItemAt(int)
-
- ·
size()
-
- ·
toString()
- Get a string representation of this item.
- ·
valueOf(String)
- Returns a new Sequence object initialized to the value of the
specified String.
Constructors
·
Sequence
public Sequence()
- Construct a new empty sequence.
Methods
·
elements
public Enumeration elements()
·
sequenceItemAt
public SequenceItem sequenceItemAt(int index)
·
size
public int size()
·
addSequenceItem
public void addSequenceItem(SequenceItem si)
·
addSequenceItem
public void addSequenceItem(String sample)
·
addSequenceItem
public void addSequenceItem(int pause,
String sample)
·
toString
public String toString()
- Get a string representation of this item. The string can be
parsed back to a Sequence with valueOf().
- Returns:
- A string reprentation of the object.
- Overrides:
- toString in class Object
- See Also:
- valueOf
·
valueOf
public static Sequence valueOf(String s) throws IllegalArgumentException
- Returns a new Sequence object initialized to the value of the
specified String. Throws an exception if the String cannot be
parsed as a Sequence.
- Parameters:
- s - the string to be parsed.
- Returns:
- a newly constructed Sequence initialized to the value
represented by the string argument.
- Throws: IllegalArgumentException
- An exception is
thrown if the string doesn't represent a valid sequence.
·
main
public static void main(String args[])
All Packages Class Hierarchy This Package Previous Next Index