All Packages Class Hierarchy This Package Previous Next Index
Class tadt.domain.TimeValue
java.lang.Object
|
+----tadt.domain.TimeValueKind
|
+----tadt.domain.TimeValue
- public class TimeValue
- extends TimeValueKind
The TimeValue class implements the underlying domain of Time Values.
In this class an Unbounded Discrete Domain is implemented.
This domain augments operations in the PolyInt class with Special
values such as the beginning or end of time.
-
TimeValue(int)
- A special TimeValue only needs a kind
-
TimeValue(int, BigInteger)
- A normal time value needs a kind a granule count
-
add(TimeValue)
-
-
divide(TimeValue)
-
-
equals(TimeValue)
- The equality tester for Hashtables
-
equalTo(TimeValue)
-
-
greaterThan(TimeValue)
-
-
greaterThanOrEqualTo(TimeValue)
-
-
hashCode(TimeValue)
- Get the hashCode for this TimeValue.
-
image()
- Create a nice string image of a time value
-
lessThan(TimeValue)
-
-
lessThanOrEqualTo(TimeValue)
-
-
multiply(TimeValue)
-
-
negate()
-
-
subtract(TimeValue)
-
TimeValue
public TimeValue(int kind,
BigInteger p)
- A normal time value needs a kind a granule count
- Parameters:
- kind - - normal
- p - - number of granules
TimeValue
public TimeValue(int kind)
- A special TimeValue only needs a kind
- Parameters:
- kind - - max or min
image
public String image()
- Create a nice string image of a time value
- Returns:
- String image of time value
hashCode
public int hashCode(TimeValue other)
- Get the hashCode for this TimeValue.
return the hashCode
equals
public boolean equals(TimeValue other)
- The equality tester for Hashtables
- Parameters:
- other - - The TimeValue to test for equality
return does this == other?
lessThan
public boolean lessThan(TimeValue other)
greaterThanOrEqualTo
public boolean greaterThanOrEqualTo(TimeValue other)
equalTo
public boolean equalTo(TimeValue other)
lessThanOrEqualTo
public boolean lessThanOrEqualTo(TimeValue other)
greaterThan
public boolean greaterThan(TimeValue other)
subtract
public TimeValue subtract(TimeValue other)
add
public TimeValue add(TimeValue other)
negate
public TimeValue negate()
multiply
public TimeValue multiply(TimeValue other)
divide
public TimeValue divide(TimeValue other)
All Packages Class Hierarchy This Package Previous Next Index