public class SuperdenseDependency extends BooleanDependency
| Modifier and Type | Field and Description |
|---|---|
static SuperdenseDependency |
OPLUS_IDENTITY
The additive identity.
|
static SuperdenseDependency |
OTIMES_IDENTITY
The multiplicative identity.
|
_valueEQUALS, GREATER_THAN, INCOMPARABLE, LESS_THAN| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Dependency dependency)
Return Dependency.LESS_THAN, EQUALS, or GREATER_THAN depending
on whether the argument is less than, equal to, or greater than
this dependency.
|
boolean |
equals(java.lang.Object object)
Return true if the value of this dependency equals that
of the specified one, and the specified one is an instance
of RealDependency.
|
int |
hashCode()
Return the same hashCode that that Java Double object would
return had it the same value as the real part of the value
of this dependency.
|
int |
indexValue()
Return the index value of this dependency.
|
Dependency |
oPlus(Dependency dependency)
Return a dependency that results from parallel composition of
this one and the specified one.
|
Dependency |
oPlusIdentity()
Return the dependency that when added to any other
dependency using oPlus() yields the other dependency.
|
Dependency |
oTimes(Dependency dependency)
Return a dependency that results from serial composition of
this one and the specified one.
|
Dependency |
oTimesIdentity()
Return the dependency that when multiplied by any other
dependency using oTimes() yields the other dependency.
|
double |
timeValue()
Return the time value of this dependency.
|
java.lang.String |
toString()
Return a string representation in the form
"SuperdenseDependency(_time, _index)".
|
static SuperdenseDependency |
valueOf(double time,
int index)
Return an instance of SuperdenseDependency with the specified
time and index value.
|
valueOfpublic static final SuperdenseDependency OPLUS_IDENTITY
public static final SuperdenseDependency OTIMES_IDENTITY
public int compareTo(Dependency dependency)
In the case where both dependencies have _time value equal to Double.POSITIVE_INFINITY, these two dependencies are equal, even though its indices may differ. This conforms with valueOf() method.
compareTo in interface java.lang.Comparable<Dependency>compareTo in class BooleanDependencydependency - The dependency to compare against.java.lang.ClassCastException - If the argument is not an instance
of SuperdenseDependency.valueOf(double, int)public boolean equals(java.lang.Object object)
In the case where both dependencies have _time value equal to Double.POSITIVE_INFINITY, these two dependencies are equal, even though its indices may differ. This conforms with valueOf() method.
equals in class BooleanDependencyobject - The object to compare against.valueOf(double, int)public int hashCode()
hashCode in class BooleanDependencypublic int indexValue()
public Dependency oPlus(Dependency dependency)
oPlus in interface DependencyoPlus in class BooleanDependencydependency - The dependency to add.java.lang.ClassCastException - if dependency is not a SuperdenseDependency.public Dependency oPlusIdentity()
oPlusIdentity in interface DependencyoPlusIdentity in class BooleanDependencypublic Dependency oTimes(Dependency dependency)
oTimes in interface DependencyoTimes in class BooleanDependencydependency - The dependency to multiply.java.lang.ClassCastException - if dependency is not a RealDependency.public Dependency oTimesIdentity()
oTimesIdentity in interface DependencyoTimesIdentity in class BooleanDependencypublic double timeValue()
public java.lang.String toString()
toString in class BooleanDependencypublic static SuperdenseDependency valueOf(double time, int index)
time - The time value.index - The index value.OTIMES_IDENTITY is returned, if
value is (Double.POSITIVE_INFINITY, n) for any n,
then OPLUS_IDENTITY
is returned. Otherwise the SuperdenseDependency constructor
is called.