public class DyadRankingInstance extends ADyadRankingInstance
| Constructor and Description |
|---|
DyadRankingInstance(java.util.List<Dyad> dyads)
Construct a new dyad ranking instance that saves the given ordering of dyads
immutably.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
Dyad |
getDyadAtPosition(int position)
Get the dyad at the specified position in the ordering contained in this
instance.
|
DyadRankingInstance |
getTargetValue()
Getter for the value of the target attribute.
|
int |
hashCode() |
java.util.Iterator<Dyad> |
iterator() |
int |
length()
Get the number of dyads in the ranking.
|
java.lang.String |
toString() |
toMatrixpublic DyadRankingInstance(java.util.List<Dyad> dyads)
dyads - the ordering of dyads to be stored in this instancepublic java.util.Iterator<Dyad> iterator()
public Dyad getDyadAtPosition(int position)
IDyadRankingInstanceposition - The position in the ordering for which to get the dyadpublic int length()
IDyadRankingInstancepublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic DyadRankingInstance getTargetValue()
ILabeledInstance