policyMgmt
Class TimeEvent
java.lang.Object
|
+--java.util.EventObject
|
+--policyMgmt.Event
|
+--policyMgmt.TimeEvent
- public class TimeEvent
- extends Event
Time Event. This could be regular interval based, one- or multiple shot
calendar based, or regular calendar based TimeEvents, which are modelled
by subclasses. Regular calendar based TimeEvents are not yet implemented.
- See Also:
- Serialized Form
| Fields inherited from class java.util.EventObject |
source |
|
Constructor Summary |
TimeEvent(java.util.Date when,
java.lang.Object src)
Create (raise) a TimeEvent with a forced raising timestamp. |
TimeEvent(java.lang.Object src)
Create (raise) a TimeEvent. |
|
Method Summary |
java.util.Date |
getTime()
Retrieve the Event's raising timestamp. |
java.lang.String |
toString()
Retrieve a printable String representation of this TimeEvent. |
| Methods inherited from class java.util.EventObject |
getSource |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
TimeEvent
public TimeEvent(java.lang.Object src)
- Create (raise) a TimeEvent.
- Parameters:
src - associated Element/Object
TimeEvent
public TimeEvent(java.util.Date when,
java.lang.Object src)
- Create (raise) a TimeEvent with a forced raising timestamp.
- Parameters:
when - the forced Datesrc - associated Element/Object
getTime
public java.util.Date getTime()
- Retrieve the Event's raising timestamp.
- Returns:
- the Date
toString
public java.lang.String toString()
- Retrieve a printable String representation of this TimeEvent.
(Useful for debugging).
- Overrides:
- toString in class java.util.EventObject
- Returns:
- the String