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.


Constructor Index

 o TimeValue(int)
A special TimeValue only needs a kind
 o TimeValue(int, BigInteger)
A normal time value needs a kind a granule count

Method Index

 o add(TimeValue)
 o divide(TimeValue)
 o equals(TimeValue)
The equality tester for Hashtables
 o equalTo(TimeValue)
 o greaterThan(TimeValue)
 o greaterThanOrEqualTo(TimeValue)
 o hashCode(TimeValue)
Get the hashCode for this TimeValue.
 o image()
Create a nice string image of a time value
 o lessThan(TimeValue)
 o lessThanOrEqualTo(TimeValue)
 o multiply(TimeValue)
 o negate()
 o subtract(TimeValue)

Constructors

 o TimeValue
  public TimeValue(int kind,
                   BigInteger p)
A normal time value needs a kind a granule count

Parameters:
kind - - normal
p - - number of granules
 o TimeValue
  public TimeValue(int kind)
A special TimeValue only needs a kind

Parameters:
kind - - max or min

Methods

 o image
  public String image()
Create a nice string image of a time value

Returns:
String image of time value
 o hashCode
  public int hashCode(TimeValue other)
Get the hashCode for this TimeValue. return the hashCode

 o equals
  public boolean equals(TimeValue other)
The equality tester for Hashtables

Parameters:
other - - The TimeValue to test for equality return does this == other?
 o lessThan
  public boolean lessThan(TimeValue other)
 o greaterThanOrEqualTo
  public boolean greaterThanOrEqualTo(TimeValue other)
 o equalTo
  public boolean equalTo(TimeValue other)
 o lessThanOrEqualTo
  public boolean lessThanOrEqualTo(TimeValue other)
 o greaterThan
  public boolean greaterThan(TimeValue other)
 o subtract
  public TimeValue subtract(TimeValue other)
 o add
  public TimeValue add(TimeValue other)
 o negate
  public TimeValue negate()
 o multiply
  public TimeValue multiply(TimeValue other)
 o divide
  public TimeValue divide(TimeValue other)

All Packages  Class Hierarchy  This Package  Previous  Next  Index