visidia.simulation.process.criterion
Class MessagePacketCriterion

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

public class MessagePacketCriterion
extends java.lang.Object
implements Criterion

MessagePacketCriterion is a message criterion wrapper that handles a message packet, extracts its message which is then tested by a MessageCriterion.


Constructor Summary
MessagePacketCriterion(MessageCriterion mc)
          Instantiates a new message packet criterion.
 
Method Summary
 boolean isMatchedBy(java.lang.Object o)
          Returns true if the object is a MessagePacket, and contains a Message which satisfies the message criterion.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MessagePacketCriterion

public MessagePacketCriterion(MessageCriterion mc)
Instantiates a new message packet criterion.

Parameters:
mc - the message criterion
Method Detail

isMatchedBy

public boolean isMatchedBy(java.lang.Object o)
Returns true if the object is a MessagePacket, and contains a Message which satisfies the message criterion.

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