planet.chord
Class GMLConstraintZmod

java.lang.Object
  extended byplanet.chord.GMLConstraintZmod
All Implemented Interfaces:
GMLConstraint, java.io.Serializable

public class GMLConstraintZmod
extends java.lang.Object
implements GMLConstraint

Constraints for GML edge selection according to Integer congruences partitions.

Author:
Marc Sanchez
See Also:
Serialized Form

Field Summary
protected  int pt
           
protected  int Zmod
           
 
Constructor Summary
GMLConstraintZmod(int Zmod, int pt)
           
 
Method Summary
 int getPt()
           
 int getZmod()
           
 boolean isACompliantEdge(GMLEdge e)
          This method returns true if a GMLEdgeImpl is compliant according to this GMLConstraint.
 boolean isACompliantNode(Id id)
          This method returns true if a Node is compliant according to this GMLConstraint.
 void setPt(int pt)
           
 void setZmod(int zmod)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

Zmod

protected int Zmod

pt

protected int pt
Constructor Detail

GMLConstraintZmod

public GMLConstraintZmod(int Zmod,
                         int pt)
Method Detail

getPt

public int getPt()
Returns:
Returns the partition equivalence class.

setPt

public void setPt(int pt)
Parameters:
pt - The partition equivalence class to set.

getZmod

public int getZmod()
Returns:
Returns the zmod.

setZmod

public void setZmod(int zmod)
Parameters:
zmod - The zmod to set.

isACompliantEdge

public boolean isACompliantEdge(GMLEdge e)
Description copied from interface: GMLConstraint
This method returns true if a GMLEdgeImpl is compliant according to this GMLConstraint.

Specified by:
isACompliantEdge in interface GMLConstraint
Parameters:
e - GMLEdgeImpl to check.
Returns:
true if GMLEdgeImpl is compliant according to this constraint

isACompliantNode

public boolean isACompliantNode(Id id)
Description copied from interface: GMLConstraint
This method returns true if a Node is compliant according to this GMLConstraint.

Specified by:
isACompliantNode in interface GMLConstraint
Parameters:
id - Id to check.
Returns:
true if Id is compliant accordint to this constraint.