JavaView® v2.12

jv.vecmath
Class P_Vector

java.lang.Object
  |
  +--jv.vecmath.P_Vector
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
PdBary, PdBaryDir, PdVector, PgElementEdge, PiVector, PvDisplayOption

public abstract class P_Vector
extends java.lang.Object
implements java.io.Serializable

Abstract base class for linear algebra vectors allowing to tag individual vectors.

Version:
21.06.00, 1.10 revised (kp) Optional array with constraint indices added.
00.00.97, 1.00 created (kp)
Author:
Konrad Polthier
See Also:
Serialized Form

Constructor Summary
P_Vector()
           
 
Method Summary
 void clearTag(int aBit)
          Clears a single bit.
static P_Vector[] clone(P_Vector[] src)
          Duplicate array and all entries by recursively cloning all instance variables except inspector panels and lists of registered listeners.
static P_Vector[][] clone(P_Vector[][] src)
          Duplicate array and all entries by recursively cloning all instance variables except inspector panels and lists of registered listeners.
 void copy(P_Vector vec)
          Copies the bitfield of another vector.
 long[] getBits()
          Get integer array with bits.
 java.lang.String getName()
          Get name of vector.
 boolean hasTag(int aBit)
          Gets the value of a single bit.
 void setName(java.lang.String name)
          Set name of vector, e.g. to be shown in display.
 void setTag(int aBit)
          Sets a single bit.
 java.lang.String toString()
          Create a multi-line string representation with detailed information about all instance variables.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

P_Vector

public P_Vector()
Method Detail

toString

public java.lang.String toString()
Create a multi-line string representation with detailed information about all instance variables.
Overrides:
toString in class java.lang.Object

getName

public java.lang.String getName()
Get name of vector.
Returns:
Name of vector

setName

public void setName(java.lang.String name)
Set name of vector, e.g. to be shown in display.
Parameters:
name - New name of vector

getBits

public long[] getBits()
Get integer array with bits.

setTag

public void setTag(int aBit)
Sets a single bit. If the bit array does not exist then it is created. If the array too small then it is enlarged.
Parameters:
bit - the index of the bit to be set

clearTag

public void clearTag(int aBit)
Clears a single bit.
Parameters:
bit - the index of the bit to be cleared

hasTag

public boolean hasTag(int aBit)
Gets the value of a single bit.
Parameters:
bit - the index of the bit to be gotten

clone

public static P_Vector[][] clone(P_Vector[][] src)
Duplicate array and all entries by recursively cloning all instance variables except inspector panels and lists of registered listeners. The parent relationship is maintained only within this class but not to external classes. In general, all links of the clone to external objects are set to null.
See Also:
copy(P_Vector)

clone

public static P_Vector[] clone(P_Vector[] src)
Duplicate array and all entries by recursively cloning all instance variables except inspector panels and lists of registered listeners. The parent relationship is maintained only within this class but not to external classes. In general, all links of the clone to external objects are set to null.
See Also:
copy(P_Vector)

copy

public void copy(P_Vector vec)
Copies the bitfield of another vector. If the argument vector has no bit array then the bit array of this is removed and the pointer set to null. The bit array of this is created or enlarged if necessary.
Parameters:
vec - the vector to be copied

JavaView® v2.12

The software JavaView® is copyright protected. All Rights Reserved.