|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectvisidia.simulation.process.criterion.DoorPulseCriterion
public class DoorPulseCriterion
allows to retrieve a message from a node queue according to the pulse and/or door number. This class is used in the SyncAlgorithm to filter messages and allows the user to get messages according to a given pulse and/or door.
| Constructor Summary | |
|---|---|
DoorPulseCriterion()
the door and the pulse are ignored. matches any messagePacket. |
|
DoorPulseCriterion(int pulse)
the door is ignored. matches any messagePacket sent at the given pulse. |
|
DoorPulseCriterion(int door,
int pulse)
matches any messagePacket sent at the given pulse and arrived at the given port. |
|
| Method Summary | |
|---|---|
boolean |
doorIsNull()
|
int |
getDoor()
|
int |
getPulse()
|
boolean |
isMatchedBy(java.lang.Object o)
return true if the object o is instance of a MessagePacket object and if the door and pulse of the MessagePacket object o match respectively the door and pulse of this object, otherwise return false. |
boolean |
pulseIsNull()
|
void |
setDoor(int door)
set the door in the criterion. |
void |
setPulse(int pulse)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DoorPulseCriterion()
public DoorPulseCriterion(int pulse)
public DoorPulseCriterion(int door,
int pulse)
| Method Detail |
|---|
public boolean isMatchedBy(java.lang.Object o)
isMatchedBy in interface Criteriono - the object
public int getPulse()
public int getDoor()
public void setDoor(int door)
public void setPulse(int pulse)
public boolean pulseIsNull()
public boolean doorIsNull()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||