drcl.comp.contract
Class DoubleEventContract
java.lang.Object
|
+--drcl.comp.Contract
|
+--drcl.comp.contract.DoubleEventContract
- public class DoubleEventContract
- extends Contract
Defines the format of the dobule event message exported by a
component and provides utility methods
to retrieve individual fields in such a message.
An event message contains the following fields:
| FIELD | TYPE | DESCRIPTION |
| Time
| double
| Time when the event occurs and this message is exported.
|
| Port
| String
| Path of the port where this message is originated.
|
| Event Name
| String
| Name of the event.
|
| Value
| double
| Value of the event.
|
| Description
| Object
| Description of the event.
|
|
Method Summary |
java.lang.Object |
getContractContent()
Returns the content of this contract (format?). |
java.lang.String |
getName()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
INSTANCE
public static final DoubleEventContract INSTANCE
DoubleEventContract
public DoubleEventContract()
getName
public java.lang.String getName()
- Overrides:
getName in class Contract
getContractContent
public java.lang.Object getContractContent()
- Description copied from class:
Contract
- Returns the content of this contract (format?).
- Overrides:
getContractContent in class Contract
Copyright © 2001 - DRCL, OSU ~ Back to JavaSim Home ~