J-Sim v1.2.1-p7 API

drcl.inet.contract
Class IDConfig.Message

java.lang.Object
  extended bydrcl.DrclObj
      extended bydrcl.comp.Message
          extended bydrcl.inet.contract.IDConfig.Message
All Implemented Interfaces:
java.lang.Cloneable, ObjectDuplicable, java.io.Serializable
Enclosing class:
IDConfig

public static class IDConfig.Message
extends Message

See Also:
Serialized Form

Constructor Summary
IDConfig.Message()
           
IDConfig.Message(int type_, long[] ids_)
           
IDConfig.Message(int type_, long[] ids_, double[] timeout_)
           
 
Method Summary
 java.lang.Object clone()
          Returns a clone of this object.
 void duplicate(java.lang.Object source_)
          opies the content of the source_ object to this object.
 Contract getContract()
          Returns the associated contract of this message.
 long[] getIDs()
           
 double[] getTimeouts()
           
 int getType()
           
 java.lang.String toString(java.lang.String separator_)
          Prints the content of the message by separating each field with the separator string.
 
Methods inherited from class drcl.comp.Message
toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IDConfig.Message

public IDConfig.Message()

IDConfig.Message

public IDConfig.Message(int type_,
                        long[] ids_,
                        double[] timeout_)

IDConfig.Message

public IDConfig.Message(int type_,
                        long[] ids_)
Method Detail

getType

public int getType()

getIDs

public long[] getIDs()

getTimeouts

public double[] getTimeouts()

duplicate

public void duplicate(java.lang.Object source_)
Description copied from class: DrclObj
opies the content of the source_ object to this object. he subclass must implement this method to realize DrclObj.clone().

Specified by:
duplicate in interface ObjectDuplicable
Overrides:
duplicate in class DrclObj

clone

public java.lang.Object clone()
Description copied from class: DrclObj
Returns a clone of this object. By default, this method creates an object of the same class and calls DrclObj.duplicate(Object) to duplicate the content of this object to the newly-created one.

This method uses getClass().newInstance() to create new instance. Hence, subclasses need to override this method only if the subclass is not declared as public or does not have explicit no-argument constructor. A subclass may override this method for performance reason.

Specified by:
clone in interface ObjectDuplicable
Overrides:
clone in class DrclObj

getContract

public Contract getContract()
Description copied from class: Message
Returns the associated contract of this message.

Specified by:
getContract in class Message

toString

public java.lang.String toString(java.lang.String separator_)
Description copied from class: Message
Prints the content of the message by separating each field with the separator string.

Specified by:
toString in class Message

J-Sim v1.2.1-p7 API

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