orca.util
Class AvailableUnits

java.lang.Object
  extended by orca.util.AvailableUnits
All Implemented Interfaces:
java.lang.Comparable<AvailableUnits>

public class AvailableUnits
extends java.lang.Object
implements java.lang.Comparable<AvailableUnits>

Represents available units for a given interval.


Field Summary
 long end
          End of the interval
 long start
          Start of the interval
 long units
          Available units
 
Constructor Summary
AvailableUnits()
           
AvailableUnits(long start, long end, long units)
           
 
Method Summary
 int compareTo(AvailableUnits other)
          Compares this instance to another instance of the same class
 AvailableUnits copy()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

start

public long start
Start of the interval


end

public long end
End of the interval


units

public long units
Available units

Constructor Detail

AvailableUnits

public AvailableUnits()

AvailableUnits

public AvailableUnits(long start,
                      long end,
                      long units)
Method Detail

copy

public AvailableUnits copy()

compareTo

public int compareTo(AvailableUnits other)
Compares this instance to another instance of the same class

Specified by:
compareTo in interface java.lang.Comparable<AvailableUnits>

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2007 Network/Internet Computing Lab. All Rights Reserved.