DRCL J-Sim API

drcl.comp.contract
Class DoubleEventContract

java.lang.Object
  extended bydrcl.comp.Contract
      extended bydrcl.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.


Nested Class Summary
static class DoubleEventContract.Message
           
 
Field Summary
static DoubleEventContract INSTANCE
           
 
Fields inherited from class drcl.comp.Contract
Role_INITIATOR, Role_PEER, Role_REACTOR
 
Constructor Summary
DoubleEventContract()
           
 
Method Summary
 java.lang.Object getContractContent()
          Returns the content of this contract (format?).
 java.lang.String getName()
           
 
Methods inherited from class drcl.comp.Contract
getRole, match, setRole
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static final DoubleEventContract INSTANCE
Constructor Detail

DoubleEventContract

public DoubleEventContract()
Method Detail

getName

public java.lang.String getName()
Specified by:
getName in class Contract

getContractContent

public java.lang.Object getContractContent()
Description copied from class: Contract
Returns the content of this contract (format?).

Specified by:
getContractContent in class Contract

DRCL J-Sim API

Copyright © 1998-2003 Distributed Real-time Computing Lab (DRCL). All Rights Reserved.     ~ To J-Sim Home ~