net.aerith.misao.util
Class TriangleMatchingSolver.TriIndex

java.lang.Object
  |
  +--net.aerith.misao.util.TriangleMatchingSolver.TriIndex
Enclosing class:
TriangleMatchingSolver

protected class TriangleMatchingSolver.TriIndex
extends java.lang.Object

The TriIndex represents a set of three indexes in the original list which expresses a triangle.


Field Summary
protected  int[] indexes
          The three indexes.
 
Constructor Summary
TriangleMatchingSolver.TriIndex(int index1, int index2, int index3)
          Constructs a TriIndex.
 
Method Summary
 int element(int n)
          Gets an index.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

indexes

protected int[] indexes
The three indexes.
Constructor Detail

TriangleMatchingSolver.TriIndex

public TriangleMatchingSolver.TriIndex(int index1,
                                       int index2,
                                       int index3)
Constructs a TriIndex.
Parameters:
index1 - the first index.
index2 - the second index.
index3 - the third index.
Method Detail

element

public int element(int n)
Gets an index.
Parameters:
n - the n-th index to be returned.