DRCL J-Sim API

drcl.util.scalar
Class LongVector

java.lang.Object
  extended bydrcl.DrclObj
      extended bydrcl.util.scalar.LongVector
All Implemented Interfaces:
java.lang.Cloneable, ObjectCloneable, ObjectDuplicable, java.io.Serializable

public class LongVector
extends DrclObj

See Also:
Serialized Form

Constructor Summary
LongVector()
           
LongVector(int initSize, int increment)
           
 
Method Summary
 void addValue(long d)
           
 void duplicate(java.lang.Object source_)
          opies the content of the source_ object to this object.
 long[] getLongs()
           
 long getValueAt(int i)
           
 int indexOf(long value_)
          Returns the index of the first occurance.
 void insertValueAt(long d, int index)
           
 void removeAll()
           
 void removeValue(long val)
           
 void removeValueAt(int index)
           
 void setSize(int newSize)
           
 void setValueAt(long d, int pos)
           
 int size()
           
 java.lang.String toString()
           
 
Methods inherited from class drcl.DrclObj
clone
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LongVector

public LongVector()

LongVector

public LongVector(int initSize,
                  int increment)
Method Detail

addValue

public void addValue(long d)

insertValueAt

public void insertValueAt(long d,
                          int index)

removeValueAt

public void removeValueAt(int index)

removeValue

public void removeValue(long val)

setValueAt

public void setValueAt(long d,
                       int pos)

getValueAt

public long getValueAt(int i)

indexOf

public int indexOf(long value_)
Returns the index of the first occurance.


setSize

public void setSize(int newSize)

size

public int size()

getLongs

public long[] getLongs()

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

removeAll

public void removeAll()

toString

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

DRCL J-Sim API

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