Package uk.ac.qmul.eecs.depic.patterns
Class SequenceEvent
- java.lang.Object
-
- java.util.EventObject
-
- uk.ac.qmul.eecs.depic.patterns.SequenceEvent
-
public class SequenceEvent extends java.util.EventObject
An event in a sequence. Objects of this type are passed to the listeners of a sequence when it get changed.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static class
SequenceEvent.What
Type of events in a sequence
-
Constructor Summary
Constructors Constructor and Description SequenceEvent(Sequence seq, Sequence.Value val, SequenceEvent.What what)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description Sequence
getSource()
Sequence.Value
getValue()
If the event concerns a particular value, it returns a reference to that value.SequenceEvent.What
getWhat()
-
-
-
Constructor Detail
-
SequenceEvent
public SequenceEvent(Sequence seq, Sequence.Value val, SequenceEvent.What what)
-
-
Method Detail
-
getWhat
public SequenceEvent.What getWhat()
-
getSource
public Sequence getSource()
- Overrides:
getSource
in classjava.util.EventObject
-
getValue
public Sequence.Value getValue()
If the event concerns a particular value, it returns a reference to that value. If the event concerns the whole sequence it returnsnull
.- Returns:
- a reference to the value, or
null
if the event concerns no value
-
-