visidia.simulation.process.criterion
Class DoorCriterion

java.lang.Object
  extended by visidia.simulation.process.criterion.DoorCriterion
All Implemented Interfaces:
Criterion

public class DoorCriterion
extends java.lang.Object
implements Criterion

DoorCriterion is used to select a message packet according to its incoming door.


Constructor Summary
DoorCriterion(int wantedDoor)
          Instantiates a new door criterion.
 
Method Summary
 boolean isMatchedBy(java.lang.Object o)
          Returns true if object is a MessagePacket coming from the expected door.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DoorCriterion

public DoorCriterion(int wantedDoor)
Instantiates a new door criterion.

Parameters:
wantedDoor - the wanted door
Method Detail

isMatchedBy

public boolean isMatchedBy(java.lang.Object o)
Returns true if object is a MessagePacket coming from the expected door.

Specified by:
isMatchedBy in interface Criterion
Parameters:
o - the object
Returns:
true, if criterion is satisfied.
See Also:
Criterion.isMatchedBy(java.lang.Object)