ParameterNoticeBoard
Class StatusTime

java.lang.Object
  extended by ParameterNoticeBoard.StatusTime

 class StatusTime
extends java.lang.Object

Used to hold the temporal information relating to status information which was written into the noticeboard. It tracks the time that the item was written into the noticeboard and also the time at which the status value is expected to expire after the status value has been updated

Version:
$Id: StatusTime.java,v 1.4 2008/05/21 11:17:57 cb Exp $
Author:
Craige Bevil

Field Summary
 int ExpiryTime
          The delay expressed in milli-seconds after which the status value is considered to be out of date.
private  java.util.Date StatusLastUpdateTime
           
private static int STATUSNEVEREXPIRES
          Constant which reflects that the status will never expire
 
Constructor Summary
StatusTime()
          Default constructor
StatusTime(int ExpiryTime)
          Constructor which sets the expiry time to the value which is specified in millisecs since Jan 1st 1970
 
Method Summary
(package private)  void resetStatusUpdateTime()
          Resets the status update time to now
(package private)  boolean statusValueExpired()
          Tests whether this status item has expired or not
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

STATUSNEVEREXPIRES

private static final int STATUSNEVEREXPIRES
Constant which reflects that the status will never expire

See Also:
Constant Field Values

StatusLastUpdateTime

private java.util.Date StatusLastUpdateTime

ExpiryTime

public int ExpiryTime
The delay expressed in milli-seconds after which the status value is considered to be out of date.

Constructor Detail

StatusTime

StatusTime(int ExpiryTime)
Constructor which sets the expiry time to the value which is specified in millisecs since Jan 1st 1970


StatusTime

StatusTime()
Default constructor

Method Detail

statusValueExpired

boolean statusValueExpired()
Tests whether this status item has expired or not


resetStatusUpdateTime

void resetStatusUpdateTime()
Resets the status update time to now