planet.generic.commonapi.behaviours
Class BehavioursIdleFilter
java.lang.Object
planet.generic.commonapi.behaviours.BehavioursIdleFilter
- All Implemented Interfaces:
- BehavioursFilter, java.io.Serializable
- public class BehavioursIdleFilter
- extends java.lang.Object
- implements BehavioursFilter
IdleFilter class does not filter any RouteMessage.
- Author:
- Marc Sanchez, Jordi Pujol
05-jul-2005
- See Also:
- Serialized Form
Method Summary |
boolean |
filter(RouteMessage msg,
Node node)
Given a RouteMessage and a Node as input, filter's method filters the
input RouteMessage if does not satisfy filter's precondition. |
java.lang.String |
getName()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
BehavioursIdleFilter
public BehavioursIdleFilter()
- Empty constructor. Does nothing.
filter
public boolean filter(RouteMessage msg,
Node node)
- Given a RouteMessage and a Node as input, filter's method filters the
input RouteMessage if does not satisfy filter's precondition.
- Specified by:
filter
in interface BehavioursFilter
- Parameters:
msg
- RouteMessage taken as input.node
- Node taken as input.
- Returns:
- true when the msg must be filtered. false when
this RouteMessage must be processed by the behaviours.
getName
public java.lang.String getName()
- Specified by:
getName
in interface BehavioursFilter
- Returns:
- Returns the name of the filter.
toString
public java.lang.String toString()
- Specified by:
toString
in interface BehavioursFilter
- Returns:
- Returns a string representation of the filter. In general, the toString
method returns a string that "textually represents" this behaviour. The result should
be a concise but informative representation that is easy for a person to read.