|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfhm.edu.fem.calc.objects.matrix.ENVHullMatrix
public class ENVHullMatrix
Class Description: This class represents the ENV vector used in the HullMatrix (the index starts at 1 not 0)
Field Summary | |
---|---|
protected ENVVector |
data
|
protected ENVVector |
enlargeVector
|
protected static Logger |
localLogger
|
Constructor Summary | |
---|---|
protected |
ENVHullMatrix()
|
|
ENVHullMatrix(ENVHullMatrix env)
Copy Constructor |
|
ENVHullMatrix(int size)
Construct a new ENV for a HullMatrix with the given number of "0.0" elements |
Method Summary | |
---|---|
void |
add(int index,
double value)
Add a new element at a specific index of the list, causing all other elements coming after that element to be shifted to the right (including the element currently at the given index) |
java.lang.Object |
clone()
Clone this object |
void |
enlargeAt(int index,
int difference)
Enlarge the ENV by the given difference at the given index |
double |
get(int index)
Retrieve a value from the list |
ENVVector |
getData()
Retrieve the data vector from the ENV |
long |
getRequiredMemory()
Retrieve the amount of required memory in this matrix (in byte) |
double |
set(int index,
double value)
Replace an already existing value in the list with a new value at the specific index |
int |
size()
Retrieve the current size |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected ENVVector data
protected ENVVector enlargeVector
protected static Logger localLogger
Constructor Detail |
---|
protected ENVHullMatrix()
public ENVHullMatrix(ENVHullMatrix env)
env,
- the env object to incorporate in the new ENVHullMatrix objectpublic ENVHullMatrix(int size)
size,
- the size the ENV should have at startupMethod Detail |
---|
public void add(int index, double value)
index,
- the index to set the value at (the index starts at 1)value,
- the new valuepublic java.lang.Object clone()
clone
in class java.lang.Object
public void enlargeAt(int index, int difference)
index,
- the index we enlarge the ENV at (all other items are shifted to the right)difference,
- the difference to enlarge the ENVpublic double get(int index)
index,
- the index of the value to retrieve (the index starts at 1)
public ENVVector getData()
public long getRequiredMemory()
public double set(int index, double value)
index,
- the index of the element to replace (the index starts at 1)value,
- the value to replace the other value with
public int size()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |