uk.ac.man.cs.rainbow.simulator
Interface Scheduler.LabellingListener
- All Known Implementing Classes:
- Scheduler.LabellingAdapter
- Enclosing class:
- Scheduler
- public static interface Scheduler.LabellingListener
Marker for classes that accept labelling notifications.
Objects that want to know about all the labelling that happens
in a simulation (or other scheduled system) should implement this
interface and register themselves with the Scheduler in question.
- See Also:
Scheduler.addLabellingListener(Scheduler.LabellingListener)
,
Scheduler.removeLabellingListener(Scheduler.LabellingListener)
channelLabelled
public void channelLabelled(Channel chan,
String label)
- Indicate that a channel has received a label.
- Parameters:
chan
- Which channel has been labelled?label
- What label was applied to the channel?
threadLabelled
public void threadLabelled(RainbowThread thread,
String label)
- Indicate that a thread has received a label.
- Parameters:
thread
- Which thread has been labelled?label
- What label was applied to the thread?