se.lth.cs.realtime.event
Class ActivityEvent

java.lang.Object
  extended byjava.util.EventObject
      extended byse.lth.cs.realtime.event.RTEvent
          extended byse.lth.cs.realtime.event.ActivityEvent
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
ConfigureEvent, InhibitEvent

public class ActivityEvent
extends RTEvent

Generic type of event which informs about normal changes or advancement of thread execution, such as changed period, changed priority, suspension, new sample, etc. An ActivityEvent is seldom expected to be used directly; subclasses are expected to provide desired dedicated functionality.

See Also:
License, Serialized Form

Field Summary
 
Fields inherited from class se.lth.cs.realtime.event.RTEvent
owner, ticker, timestamp
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ActivityEvent()
          Like the default RTEvent constructor, which uses the current (RT)Thread as the source.
ActivityEvent(Activity source)
          Constructs an ActivityEvent object with the specified source activity, set as the source of this event.
ActivityEvent(Activity source, long ts)
          Create a new event with both source and time set.
ActivityEvent(Activity source, long ts, Timebase timebase)
          Constructs an activity-event object with the specified source object and time-stamp with respect to the specified time-base.
ActivityEvent(long ts)
          The new event gets the time stamp according to ts.
 
Methods inherited from class se.lth.cs.realtime.event.RTEvent
getMillis, getNanos, getOwner, getSeconds, getTicks, getTimebase, paramString, setOwner, toString
 
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
 

Constructor Detail

ActivityEvent

public ActivityEvent()
Like the default RTEvent constructor, which uses the current (RT)Thread as the source.


ActivityEvent

public ActivityEvent(Activity source)
Constructs an ActivityEvent object with the specified source activity, set as the source of this event.

Parameters:
source - the thread or process where the event originated.

ActivityEvent

public ActivityEvent(Activity source,
                     long ts)
Create a new event with both source and time set.

Parameters:
source - the thread or process where the event originated.
ts - the time stamp in milliseconds of current system time.

ActivityEvent

public ActivityEvent(Activity source,
                     long ts,
                     Timebase timebase)
Constructs an activity-event object with the specified source object and time-stamp with respect to the specified time-base.

Parameters:
source - the object where the event originated.
ts - the time from which the event originates.
timebase - the base of time in which the time stamp is expressed.

ActivityEvent

public ActivityEvent(long ts)
The new event gets the time stamp according to ts.

Parameters:
ts - the time stamp in milliseconds of current system time.