DRCL JavaSim API

drcl
Class DrclObj

java.lang.Object
  |
  +--drcl.DrclObj
All Implemented Interfaces:
java.lang.Cloneable, ObjectDuplicable, java.io.Serializable
Direct Known Subclasses:
ACATimer, Admission, BitSet, BooleanObj, ByteStreamPeer, CircularBuffer, CommandTask, Component, DFProfile, DoubleObj, DVExtension, DVMRPFCExtension, DVMRPFCPacket, DVMRPRTExtension, DVMRPRTPacket, DVPacket, EventTester, ForkManager, InterfaceInfo, IntInterval, IntObj, IntSpace, IntVector, LongInterval, LongObj, LongSpace, LongVector, Map, MapKey, Marker, Message, Meter, NetAddress, OSPF_DBdesc, OSPF_Hello, OSPF_LSA, OSPF_LSack, OSPF_LSrequest, OSPF_LSupdate, Packet, Port, QLogic, QoSRequirement, Queue, RadixMap.Radix_node, RandomNumberGenerator, RTEntry, scheduler_PGPS.vparam, sIGMP.IGMPPacket, SimpleQueue._Element, SpecAd, SpecFlow, SpecR, Struct, TraceManager, TrafficModel, TrafficShaper, TreeMapQueue._Element, Util.Link, VIFPack, Wire

public class DrclObj
extends java.lang.Object
implements java.io.Serializable, ObjectDuplicable

The class defines the objects that are duplicable and serializable, properties that are desirable in many class implementations.

See Also:
Serialized Form

Constructor Summary
DrclObj()
           
 
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.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DrclObj

public DrclObj()
Method Detail

duplicate

public void duplicate(java.lang.Object source_)
opies the content of the source_ object to this object. he subclass must implement this method to realize clone().
Specified by:
duplicate in interface ObjectDuplicable

clone

public java.lang.Object clone()
Returns a clone of this object. By default, this method creates an object of the same class and calls 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 java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

DRCL JavaSim API

Copyright © 2001 - DRCL, OSU     ~ Back to JavaSim Home ~