equip.data
Class LeaseImpl

java.lang.Object
  extended byequip.runtime.Object
      extended byequip.runtime.ValueBase
          extended byequip.data.Lease
              extended byequip.data.LeaseImpl
All Implemented Interfaces:
java.lang.Cloneable

public class LeaseImpl
extends Lease

Implementation of IDL'd abstract class Lease; REQUIRES synchronized clocks


Field Summary
 
Fields inherited from class equip.data.Lease
expireTime
 
Constructor Summary
LeaseImpl()
           
 
Method Summary
 boolean expired(Time now)
          has the lease expired?
 void initFromTimeToLive(int timeToLive)
          initialise relative to current time.
 
Methods inherited from class equip.data.Lease
_equals_helper, _matches_helper, equals, getModuleName, matches, readObject, writeObject
 
Methods inherited from class equip.runtime.ValueBase
_equals_helper, _matches_helper, clone
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LeaseImpl

public LeaseImpl()
Method Detail

initFromTimeToLive

public void initFromTimeToLive(int timeToLive)
Description copied from class: Lease
initialise relative to current time.

Specified by:
initFromTimeToLive in class Lease
Parameters:
timeToLive - time of lease, in seconds, from the current time

expired

public boolean expired(Time now)
Description copied from class: Lease
has the lease expired?

Specified by:
expired in class Lease
Parameters:
now - The time against which the lease is to be checked.
Returns:
true if the lease has expired.