|
|||||||||
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
fhm.edu.fem.test.ENVHullChainMatrix
public class ENVHullChainMatrix
Class Description: Test Class - Envelope Hull Matrix Chain Style
Field Summary |
---|
Fields inherited from class fhm.edu.fem.calc.objects.matrix.ENVHullMatrix |
---|
data, enlargeVector, localLogger |
Constructor Summary | |
---|---|
ENVHullChainMatrix(ENVHullChainMatrix env)
Copy Constructor |
|
ENVHullChainMatrix(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 |
java.lang.String |
displayChain()
|
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 |
int |
getNextNonZeroIndex(int index,
int rowEndIndex)
Retrieve the next non-zero item starting from the given index |
protected ENVDataItem |
includeNewItemInList(ENVDataItem newItem,
int index)
|
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 fhm.edu.fem.calc.objects.matrix.ENVHullMatrix |
---|
getData, getRequiredMemory |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ENVHullChainMatrix(ENVHullChainMatrix env)
env,
- the env object to incorporate in the new ENVHullMatrix objectpublic ENVHullChainMatrix(int size)
size,
- the size the ENV should have at startupMethod Detail |
---|
public void add(int index, double value)
add
in class ENVHullMatrix
index,
- the index to set the value at (the index starts at 1)value,
- the new valuepublic java.lang.Object clone()
clone
in class ENVHullMatrix
public java.lang.String displayChain()
public void enlargeAt(int index, int difference)
enlargeAt
in class ENVHullMatrix
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)
get
in class ENVHullMatrix
index,
- the index of the value to retrieve (the index starts at 1)
public int getNextNonZeroIndex(int index, int rowEndIndex)
index
-
protected ENVDataItem includeNewItemInList(ENVDataItem newItem, int index)
public double set(int index, double value)
set
in class ENVHullMatrix
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()
size
in class ENVHullMatrix
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |