issrg.policytester
Class EnvironmentClock

java.lang.Object
  extended by issrg.pba.rbac.Time
      extended by issrg.pba.rbac.Clock
          extended by issrg.policytester.EnvironmentClock
All Implemented Interfaces:
java.lang.Comparable

public class EnvironmentClock
extends Clock


Field Summary
 
Fields inherited from class issrg.pba.rbac.Time
log, s_defaultTimeZone, TIME_TYPE
 
Constructor Summary
EnvironmentClock(java.lang.String timeString)
           
 
Method Summary
 java.util.Date getTime()
          This method returns the time returned by the last call to latch, so all calculations will be consistent.
 java.util.Date latch()
          This method gets the actual time and keeps it for later reference.
 
Methods inherited from class issrg.pba.rbac.Clock
getEvaluationTime
 
Methods inherited from class issrg.pba.rbac.Time
calendarToTime, calendarToTime, compareTo, equals, getDefaultTimeZone, parse, register, setDefaultTimeZone, setDefaultTimeZone, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EnvironmentClock

public EnvironmentClock(java.lang.String timeString)
Method Detail

latch

public java.util.Date latch()
Description copied from class: Clock
This method gets the actual time and keeps it for later reference. Subsequent calls to getTime will return the same value (needed in operations extended in time).

Specified by:
latch in class Clock
Returns:
the current time

getTime

public java.util.Date getTime()
Description copied from class: Clock
This method returns the time returned by the last call to latch, so all calculations will be consistent.

Specified by:
getTime in class Clock
Returns:
the time returned by the last call to latch