DRCL J-Sim API

drcl.inet.core
Class VIFPack

java.lang.Object
  extended bydrcl.DrclObj
      extended bydrcl.inet.core.VIFPack
All Implemented Interfaces:
java.lang.Cloneable, ObjectCloneable, ObjectDuplicable, java.io.Serializable

public class VIFPack
extends DrclObj

See Also:
Serialized Form

Constructor Summary
VIFPack()
           
VIFPack(int vif_, long peer_)
           
VIFPack(int vif_, long myself_, long peer_)
           
 
Method Summary
 long _getMyself(int vif_)
           
 long _getPeer(int vif_)
           
 int _getVIFFromPeer(long peer_)
           
 void _setVIF(int vif_, long peer_)
           
 void _setVIF(int vif_, long myself_, long peer_)
           
 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.
 long[] getMyself()
           
 int getNumOfVIFs()
           
 long[] getPeers()
           
 java.lang.String info()
           
 void setMyself(long[] myself_)
           
 void setPeers(long[] peers_)
           
 
Methods inherited from class drcl.DrclObj
toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

VIFPack

public VIFPack()

VIFPack

public VIFPack(int vif_,
               long peer_)

VIFPack

public VIFPack(int vif_,
               long myself_,
               long peer_)
Method Detail

info

public java.lang.String info()

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 ObjectCloneable
Overrides:
clone in class DrclObj

_getPeer

public long _getPeer(int vif_)

_getMyself

public long _getMyself(int vif_)

_setVIF

public void _setVIF(int vif_,
                    long peer_)

_setVIF

public void _setVIF(int vif_,
                    long myself_,
                    long peer_)

getPeers

public long[] getPeers()

setPeers

public void setPeers(long[] peers_)

getMyself

public long[] getMyself()

setMyself

public void setMyself(long[] myself_)

_getVIFFromPeer

public int _getVIFFromPeer(long peer_)

getNumOfVIFs

public int getNumOfVIFs()

DRCL J-Sim API

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