gov.nist.antd.merlin.generator.event
Class EventParameter

java.lang.Object
  |
  +--gov.nist.antd.merlin.generator.event.EventParameter

public class EventParameter
extends java.lang.Object

This class represents the parameter that must be created to use the TopologyManipulator.

 This class was developed at the National Institute of Standards and
 Technology by employees of the Federal Government in the course of
 their official duties. Pursuant to title 17 Section 105 of the United
 States Code this software is not subject to copyright protection and
 is in the public domain.
 NIST assumes no responsibility whatsoever for its use by other parties,
 and makes no guarantees, expressed or implied, about its quality,
 reliability, or any other characteristic.
 
We would appreciate acknowledgement if the software is used.
NIST ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS" CONDITION AND DISCLAIM ANY LIABILITY OF ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.

Author:
borchert
, rouil

Field Summary
private  byte eventType
          The type of event
private  java.lang.Object obj
          The object to manipulate
private  java.lang.Object objectValue
          The value to assign to the obj
private  long time
          The time when the event must be fired from now.
 
Constructor Summary
EventParameter(byte eventType, java.lang.Object obj, java.lang.Object objectValue, long time)
          Create an event with the given parameters.
 
Method Summary
 byte getEventType()
          Get the type of event for the object
 java.lang.Object getObj()
          Get the object that will be manipulated
 java.lang.Object getObjectValue()
          Get the value that will be assigned to the object
 long getTime()
          Get the time for the event.
 void setEventType(byte eventType)
          Set the type of event
 void setObj(java.lang.Object obj)
          Set the object to manipulate
 void setObjectValue(java.lang.Object objectValue)
          Set the object value
 void setTime(long time)
          Set the time for the event
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

eventType

private byte eventType
The type of event


obj

private java.lang.Object obj
The object to manipulate


objectValue

private java.lang.Object objectValue
The value to assign to the obj


time

private long time
The time when the event must be fired from now. In TICs

Constructor Detail

EventParameter

public EventParameter(byte eventType,
                      java.lang.Object obj,
                      java.lang.Object objectValue,
                      long time)
Create an event with the given parameters.

Parameters:
eventType - The type of the event.
obj - The object to manipulate.
objectValue - the value to apply.
time - The time the event must occur.
Method Detail

getEventType

public byte getEventType()
Get the type of event for the object

Returns:
the event type.

getObj

public java.lang.Object getObj()
Get the object that will be manipulated

Returns:
the object

getObjectValue

public java.lang.Object getObjectValue()
Get the value that will be assigned to the object

Returns:
the future object value

getTime

public long getTime()
Get the time for the event.

Returns:
Time for the event.

setEventType

public void setEventType(byte eventType)
Set the type of event

Parameters:
eventType - The type of event

setObj

public void setObj(java.lang.Object obj)
Set the object to manipulate

Parameters:
obj - The object to manipulate

setObjectValue

public void setObjectValue(java.lang.Object objectValue)
Set the object value

Parameters:
objectValue - The object value

setTime

public void setTime(long time)
Set the time for the event

Parameters:
time - The time for the event