|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.wrq.vhi.sconfig.VhiMvl
public final class VhiMvl
Class for working with an individual model variable list.
Constructor Summary | |
---|---|
VhiMvl(java.lang.String mvlName,
java.util.ArrayList varNames,
java.util.ArrayList varValues)
Constructor |
|
VhiMvl(VhiMvl o)
Copy constructor |
Method Summary | |
---|---|
void |
add(java.util.Map mvlEntry)
Add an entry to this MVL. |
java.util.Map |
get(int index)
Get a model variable list entry. |
java.lang.String |
getMVLName()
Get the name of this MVL. |
java.util.List |
getVariableNames()
Obtain a list of the variable names associated with this MVL. |
void |
remove(int index)
Remove an entry from this MVL. |
boolean |
remove(java.util.Map mvlEntry)
Remove an entry from this MVL. |
boolean |
set(int index,
java.util.Map values)
Update a model variable list entry. |
int |
size()
Obtain the number of entries in this MVL. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public VhiMvl(java.lang.String mvlName, java.util.ArrayList varNames, java.util.ArrayList varValues)
mvlName
- Name of the model variable list.varNames
- List of variable names.varValues
- List of Lists of variable values.public VhiMvl(VhiMvl o)
o
- Reference to a VhiMvl object to be cloned.Method Detail |
---|
public java.lang.String getMVLName()
public java.util.List getVariableNames()
public int size()
public java.util.Map get(int index)
index
- Index of the variable entry of interest.
java.lang.IllegalArgumentException
- if the index value
is out of range.public boolean set(int index, java.util.Map values)
index
- Index of the variable entry of interest.values
- Map of variable names and updated value(s).
java.lang.IllegalArgumentException
- if the index value
is out of range, or the values Map is not valid.public boolean remove(java.util.Map mvlEntry)
mvlEntry
- MVL entry to be removed. The entry must contain the same
variable names/values as an existing entry in this MVL, in order for
an entry to be removed. If there are duplicate entries in the MVL,
only a single (first matching) entry will deleted for each call
to this method.
public void remove(int index)
index
- Index of the entry to be removed.
java.lang.IllegalArgumentException
- if the index value is out of range.public void add(java.util.Map mvlEntry)
mvlEntry
- Entry to be added.
java.lang.IllegalArgumentException
- if mvlEntry does not contain
data that is valid and consistent with this MVL.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |