net.ponder2.policy
Class Pair
java.lang.Object
net.ponder2.policy.Pair
public class Pair
- extends java.lang.Object
- Author:
- gio
Pair is a support class that is used to represents
the pairs of OIDs. These pairs represent all the possible combinations
of OIDs that are part of the subject and target path.
firstElement contains the subject OID or of any other domains that are
in the subject path.
secondElement contains the target OID or of any other domains that are
in the target path.
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Pair
public Pair(P2ManagedObject firstElement,
P2ManagedObject secondElement)
Pair
public Pair(P2ManagedObject firstElement,
P2ManagedObject secondElement,
int subjectDist,
int targetDist)
getFirstElement
public P2ManagedObject getFirstElement()
setFirstElement
public void setFirstElement(P2ManagedObject firstElement)
getSecondElement
public P2ManagedObject getSecondElement()
setSecondElement
public void setSecondElement(P2ManagedObject secondElement)
equals
public boolean equals(java.lang.Object pair)
- Overrides:
equals
in class java.lang.Object
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright © 2008 Imperial College. All Rights Reserved.