Package uk.ac.qmul.eecs.depic.patterns
Interface Sequence
-
- All Known Subinterfaces:
- Automation
- All Known Implementing Classes:
- BeadsAutomation
public interface Sequence
A sequence of values arranged over time. The values are ordered by time, therefore given @i
andj
such that(i < j)
, the following expression is always true :sequence.getValueAt(i).getTimePosition() <= sequence.getValueAt(j).getTimePosition()
The values are limited in range. {@code getRange()) returns the range of float values that a sequence value can assume.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface and Description static interface
Sequence.Value
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description void
addSequenceListener(SequenceListener l)
float
getBegin()
float
getEnd()
float
getLen()
The length of the sequence in milliseconsRange<java.lang.Float>
getRange()
Sequence.Value
getValueAt(int index)
int
getValuesNum()
void
removeSequenceListener(SequenceListener l)
-
-
-
Method Detail
-
getBegin
float getBegin()
-
getEnd
float getEnd()
-
getValuesNum
int getValuesNum()
-
getValueAt
Sequence.Value getValueAt(int index)
-
getRange
Range<java.lang.Float> getRange()
-
addSequenceListener
void addSequenceListener(SequenceListener l)
-
removeSequenceListener
void removeSequenceListener(SequenceListener l)
-
getLen
float getLen()
The length of the sequence in millisecons- Returns:
-
-