inpro.irmrsc.rmrs
Class VariableIDPair
java.lang.Object
inpro.irmrsc.rmrs.VariableIDPair
- All Implemented Interfaces:
- VariableIDsInterpretable
public class VariableIDPair
- extends java.lang.Object
- implements VariableIDsInterpretable
A pair of two variable IDs. Used to represent relations between variable
IDs like e.g. scope constraints and variable equations in Formula
s.
- Author:
- Andreas Peldszus
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
mLeft
private int mLeft
mRight
private int mRight
VariableIDPair
public VariableIDPair(int left,
int right)
VariableIDPair
public VariableIDPair(VariableIDPair p)
getLeft
public int getLeft()
getRight
public int getRight()
getVariableIDs
public java.util.Set<java.lang.Integer> getVariableIDs()
- Specified by:
getVariableIDs
in interface VariableIDsInterpretable
- Returns:
- the set of IDs of all variables in that expression
replaceVariableID
public void replaceVariableID(int oldID,
int newID)
- Description copied from interface:
VariableIDsInterpretable
- replace all variables IDs matching a specifid old ID with a new ID
- Specified by:
replaceVariableID
in interface VariableIDsInterpretable
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object