planet.generic.commonapi.GML
Class IdleGMLConstraint

java.lang.Object
  extended byplanet.generic.commonapi.GML.IdleGMLConstraint
All Implemented Interfaces:
GMLConstraint, java.io.Serializable

public class IdleGMLConstraint
extends java.lang.Object
implements GMLConstraint

IdleGMLConstraint is used to select the whole topology of peer-to-peer network.

Author:
Marc Sanchez
See Also:
Serialized Form

Constructor Summary
IdleGMLConstraint()
           
 
Method Summary
 boolean isACompliantEdge(GMLEdge e)
          Always return true.
 boolean isACompliantNode(Id id)
          Always return true.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IdleGMLConstraint

public IdleGMLConstraint()
Method Detail

isACompliantEdge

public boolean isACompliantEdge(GMLEdge e)
Always return true.

Specified by:
isACompliantEdge in interface GMLConstraint
Parameters:
e - GMLEdgeImpl to check.
Returns:
true if GMLEdgeImpl is compliant according to this constraint
See Also:
GMLConstraint.isACompliantEdge(planet.commonapi.GML.GMLEdge)

isACompliantNode

public boolean isACompliantNode(Id id)
Always return true.

Specified by:
isACompliantNode in interface GMLConstraint
Parameters:
id - Id to check.
Returns:
true if Id is compliant accordint to this constraint.
See Also:
GMLConstraint.isACompliantNode(planet.commonapi.Id)