public final class PropagationStateArray extends Object implements IEquatable<PropagationStateArray>, ImmutableValueType
| Constructor and Description | 
|---|
PropagationStateArray()
Initializes a new instance. 
 | 
PropagationStateArray(double[] state,
                     int[] indices)
Initializes a new instance. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
boolean | 
equals(Object obj)
Indicates whether another object is exactly equal to this instance. 
 | 
static boolean | 
equals(PropagationStateArray left,
      PropagationStateArray right)
Returns  
true if the two instances are exactly equal. | 
boolean | 
equalsType(PropagationStateArray other)
Indicates whether another instance of this type is exactly equal to this instance. 
 | 
double | 
get(int index)
Gets the value of the element at the given sub-state index. 
 | 
int[] | 
getIndicesIntoOverallState()
Gets the set of indices for each sub-state element which represent the 
    indices into the  
OverallState (get). | 
int | 
getLength()
Gets the length of this sub-state. 
 | 
double[] | 
getOverallState()
Gets the overall state array which this sub-state maps into. 
 | 
int | 
hashCode()
Returns a hash code for this instance, which is suitable for use in hashing algorithms and data structures like a hash table. 
 | 
static boolean | 
notEquals(PropagationStateArray left,
         PropagationStateArray right)
Returns  
true if the two instances are not exactly equal. | 
void | 
set(int index,
   double value)
Sets the value of the element at the given sub-state index. 
 | 
public PropagationStateArray()
public PropagationStateArray(double[] state,
                             int[] indices)
state - The overall state array.indices - The indices specifying the elements of this sub-state.public final double get(int index)
index - The index into this sub-state (not the index into the overall state).public final void set(int index,
                      double value)
index - The index into this sub-state (not the index into the overall state).public final int getLength()
public final double[] getOverallState()
public final int[] getIndicesIntoOverallState()
OverallState (get).public boolean equals(Object obj)
equals in class Objectobj - The object to compare to this instance.true if obj is an instance of this type and represents the same value as this instance; otherwise false.Object.hashCode(), 
HashMappublic final boolean equalsType(@Nonnull PropagationStateArray other)
equalsType in interface IEquatable<PropagationStateArray>other - The instance to compare to this instance.true if other represents the same value as this instance; otherwise false.public int hashCode()
hashCode in class ObjectObject.equals(java.lang.Object), 
System.identityHashCode(java.lang.Object)public static boolean equals(@Nonnull PropagationStateArray left, @Nonnull PropagationStateArray right)
true if the two instances are exactly equal.left - The instance to compare to right.right - The instance to compare to left.true if left represents the same value as right; otherwise false.public static boolean notEquals(@Nonnull PropagationStateArray left, @Nonnull PropagationStateArray right)
true if the two instances are not exactly equal.left - The instance to compare to right.right - The instance to compare to left.true if left does not represent the same value as right; otherwise false.