planet.chord
Class GMLConstraintZmod
java.lang.Object
planet.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
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Zmod
protected int Zmod
pt
protected int pt
GMLConstraintZmod
public GMLConstraintZmod(int Zmod,
int pt)
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.