planet.chord
Class GMLConstraintZmod

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

public class GMLConstraintZmod
extends java.lang.Object
implements ResultsConstraint

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(ResultsEdge e)
          This method returns true if a Edge is compliant according to this Constraint.
 boolean isACompliantNode(Id id)
          This method returns true if a Node is compliant according to this Constraint.
 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(ResultsEdge e)
Description copied from interface: ResultsConstraint
This method returns true if a Edge is compliant according to this Constraint.

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

isACompliantNode

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

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