-
Constructor Summary
ConstructorsConstructorDescriptionConstructor.ParmParser
(NamedObjectFactory factory, String name, Class<?> keyType) Constructor given an alternate Parm. -
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
Removes the effect of calling parse.void
clear
(int index) Removes the effect of calling parse with an index.void
Removes the effect of calling parse with a key that is an enumeration.void
Removes the effect of calling parse with a compound key.void
Removes the effect of calling parse with a key.void
clear
(NamedObjectOps key) Removes the effect of calling parse with a key that is a named object.protected String
Get an error message with standard formats.protected ParmParser
Get the alternate Parm.protected final String
Get the name of the parameter associated with this object.protected final String
Format a key as a string.void
parse
(boolean value) Process a boolean and store it.void
parse
(double value) Process a double and store it.void
parse
(int value) Process an int and store it.void
parse
(int index, boolean value) Process a boolean and store it in the location specified by an index.void
parse
(int index, double value) Process a double and store it in the location specified by an index.void
parse
(int index, int value) Process an int and store it in the location specified by an index.void
parse
(int index, long value) Process a long and store it in the location specified by an index.void
Parse an enumeration and run a validity check on the object created, storing it in the location specified by an index.void
Parse a string and run a validity check on the object created, storing it in the location specified by an index.void
parse
(int index, BooleanRandomVariable value) Process a boolean-valued random variable and store it in the location specified by an index.void
parse
(int index, BooleanRandomVariableRV value) Process a boolean-random-variable-valued random variable and store it in the location specified by an index.void
parse
(int index, DoubleRandomVariable value) Process a double-valued random variable and store it in the location specified by an index.void
parse
(int index, DoubleRandomVariableRV value) Process a double-random-variable-valued random variable and store it in the location specified by an index.void
parse
(int index, IntegerRandomVariable value) Process an integer-valued random variable and store it in the location specified by an index.void
parse
(int index, IntegerRandomVariableRV value) Process an integer-random-variable-valued random variable and store it in the location specified by an index.void
parse
(int index, LongRandomVariable value) Process a long-valued random variable and store it in the location specified by an index.void
parse
(int index, LongRandomVariableRV value) Process a long-random-variable-valued random variable and store it in the location specified by an index.void
parse
(int index, NamedObjectOps value) Parse a named object and run a validity check on the object created, storing it in the location specified by an index.void
parse
(long value) Process a long and store it.void
Parse an instance of an enumeration and store the value.void
Process a boolean and store it in the location specified by an enumeration key.void
Process a double and store it in the location specified by an enumeration key.void
Process an int and store it in the location specified by an enumeration key.void
Process a long and store it in the location specified by an enumeration key.void
Parse an enumeration and run a validity check on the object created, storing it in the location specified by an enumeration key.void
Parse a string and run a validity check on the object created, storing it in the location specified by an enumeration key.void
parse
(Enum<?> key, BooleanRandomVariable value) Process a boolean-valued random variable and store it in the location specified by an enumeration key.void
parse
(Enum<?> key, BooleanRandomVariableRV value) Process a boolean-random-variable-valued random variable and store it in the location specified by an enumeration key.void
parse
(Enum<?> key, DoubleRandomVariable value) Process a double-valued random variable and store it in the location specified by an enumeration key.void
parse
(Enum<?> key, DoubleRandomVariableRV value) Process a double-random-variable-valued random variable and store it in the location specified by an enumeration key.void
parse
(Enum<?> key, IntegerRandomVariable value) Process an integer-valued random variable and store it in the location specified by an enumeration key.void
parse
(Enum<?> key, IntegerRandomVariableRV value) Process an integer-random-variable-valued random variable and store it in the location specified by an enumeration key.void
parse
(Enum<?> key, LongRandomVariable value) Process a long-valued random variable and store it in the location specified by an enumeration key.void
parse
(Enum<?> key, LongRandomVariableRV value) Process a long-random-variable-valued random variable and store it in the location specified by an enumeration key.void
parse
(Enum<?> key, NamedObjectOps value) Parse a named object and run a validity check on the object created, storing it in the location specified by an enumeration key.void
Parse an array, run a validity check, and, store the value.void
Process a boolean and store it in the location specified by a compound key.void
Process a double and store it in the location specified by a compound key.void
Process an int and store it in the location specified by a compound key.void
Process a long and store it in the location specified by a compound key.void
Parse an enumeration and run a validity check on the object created, storing it in the location specified by a compound key.void
Parse a string and run a validity check on the object created, storing it in the location specified by a compound key.void
parse
(Object[] key, BooleanRandomVariable value) Process a boolean-valued random variable and store it in the location specified by a compound key.void
parse
(Object[] key, BooleanRandomVariableRV value) Process a boolean-random-variable-valued random variable and store it in the location specified by a compound key.void
parse
(Object[] key, DoubleRandomVariable value) Process a double-valued random variable and store it in the location specified by a compound key.void
parse
(Object[] key, DoubleRandomVariableRV value) Process a double-random-variable-valued random variable and store it in the location specified by a compound key.void
parse
(Object[] key, IntegerRandomVariable value) Process an integer-valued random variable and store it in the location specified by a compound key.void
parse
(Object[] key, IntegerRandomVariableRV value) Process an integer-random-variable-valued random variable and store it in the location specified by a compound key.void
parse
(Object[] key, LongRandomVariable value) Process a long-valued random variable and store it in the location specified by a compound key.void
parse
(Object[] key, LongRandomVariableRV value) Process a long-random-variable-valued random variable and store it in the location specified by a compound key.void
parse
(Object[] key, NamedObjectOps value) Parse a named object and run a validity check on the object created, storing it in the location specified by a compound key.void
Parse a string, run a validity check on the object created, and store the value.void
Process a boolean and store it in the location specified by a key.void
Process a double and store it in the location specified by a key.void
Process an int and store it in the location specified by a key.void
Process a long and store it in the location specified by a key.void
Parse an enumeration and run a validity check on the object created, storing it in the location specified by an index.void
Parse a string and run a validity check on the object created, storing it in the location specified by a key.void
parse
(String key, BooleanRandomVariable value) Process a boolean-valued random variable and store it in the location specified by a key.void
parse
(String key, BooleanRandomVariableRV value) Process a boolean-random-variable-valued random variable and store it in the location specified by a key.void
parse
(String key, DoubleRandomVariable value) Process a double-valued random variable and store it in the location specified by a key.void
parse
(String key, DoubleRandomVariableRV value) Process a double-random-variable-valued random variable and store it in the location specified by a key.void
parse
(String key, IntegerRandomVariable value) Process an integer-valued random variable and store it in the location specified by a key.void
parse
(String key, IntegerRandomVariableRV value) Process an integer-random-variable-valued random variable and store it in the location specified by a key.void
parse
(String key, LongRandomVariable value) Process a long-valued random variable and store it in the location specified by a key.void
parse
(String key, LongRandomVariableRV value) Process a long-random-variable-valued random variable and store it in the location specified by a key.void
parse
(String key, NamedObjectOps value) Parse a named object and run a validity check on the object created, storing it in the location specified by an index.void
parse
(BooleanRandomVariable value) Process a boolean-valued random variable and store it.void
parse
(BooleanRandomVariableRV value) Process a boolean-random-variable-valued random variable and store it.void
parse
(DoubleRandomVariable value) Process a double-valued random variable and store it.void
parse
(DoubleRandomVariableRV value) Process a double-random-variable-valued random variable and store it.void
parse
(IntegerRandomVariable value) Process an integer-valued random variable and store it.void
parse
(IntegerRandomVariableRV value) Process an integer-random-variable-valued random variable and store it.void
parse
(LongRandomVariable value) Process a long-valued random variable and store it.void
parse
(LongRandomVariableRV value) Process a long-random-variable-valued random variable and store it.void
parse
(NamedObjectOps value) Parse a named object and store the value.void
parse
(NamedObjectOps key, boolean value) Process a boolean and store it in the location specified by a named-object key.void
parse
(NamedObjectOps key, double value) Process a double and store it in the location specified by a named-object key.void
parse
(NamedObjectOps key, int value) Process an int and store it in the location specified by a named-object key.void
parse
(NamedObjectOps key, long value) Process a long and store it in the location specified by a named-object key.void
parse
(NamedObjectOps key, Enum<?> value) Parse an enumeration and run a validity check on the object created, storing it in the location specified by a named-object key.void
parse
(NamedObjectOps key, String value) Parse a string and run a validity check on the object created, storing it in the location specified by a named-object key.void
parse
(NamedObjectOps key, BooleanRandomVariable value) Process a boolean-valued random variable and store it in the location specified by a named-object key.void
parse
(NamedObjectOps key, BooleanRandomVariableRV value) Process a boolean-random-variable-valued random variable and store it in the location specified by a named-object key.void
parse
(NamedObjectOps key, DoubleRandomVariable value) Process a double-valued random variable and store it in the location specified by a named-object key.void
parse
(NamedObjectOps key, DoubleRandomVariableRV value) Process a double-random-variable-valued random variable and store it in the location specified by a named-object key.void
parse
(NamedObjectOps key, IntegerRandomVariable value) Process an integer-valued random variable and store it in the location specified by a named-object key.void
parse
(NamedObjectOps key, IntegerRandomVariableRV value) Process an integer-random-variable-valued random variable and store it in the location specified by a named-object key.void
parse
(NamedObjectOps key, LongRandomVariable value) Process a long-valued random variable and store it in the location specified by a named-object key.void
parse
(NamedObjectOps key, LongRandomVariableRV value) Process a long-random-variable-valued random variable and store it in the location specified by a named-object key.void
parse
(NamedObjectOps key, NamedObjectOps value) Parse a named object and run a validity check on the object created, storing it in the location specified by a named-object key.
-
Constructor Details
-
ParmParser
public ParmParser()Constructor. -
ParmParser
Constructor given an alternate Parm. This is provided so that a ParmParser has access to the ParmParser for the parent Parm of the Parm associated with the parser. This alternate ParmParser is obtained by calling the methodgetAltParmParser()
. For a non-null value to be returned bygetAltParmParser()
, there must be an existing parameter with the same name as the name provided in this constructor; the keyType argument must be non-null and must match the key type used by the existing parameter, and the keyType must not be a ParmKeyType.The rationale is that in some cases associated with a Parm defined via @KeyedCompoundParm, a subclass will add a new @KeyedCompoundParm with the same value (the parameter name) in order to add additional entries. Having access to the original Parm is necessary for some operations such as clearing all subparameters associated with the parameter name.
For example, the anim2d package has factories that support a keyed compound parameter whose name is "timeline", where subclasses add their own timeline parameters. one can remove a key for "timeline" to remove all the entries that were defined for a specified key. For the "timeline" parameter alone, with no specified subparameter, the parser implements the
parse(int)
,clear()
andclear(int)
methods ("timeline" has a integer-valued key). Each method cleans up or creates its own entries and then callsgetAltParmParser()
. ifgetAltParmParser()
returns a non-null value, the same method is called on that non-null value. A typical code fragment is the following:public void clear(int key) { factory.timelineMap.remove(key); ParmParser altParser = getAltParmParser(); if (altParser != null) { altParser.clear(key); } }
This constructor is used in code generated by the annotation processor that supports the annotations in the package org.bzdev.obnaming.annotations. The example above is for the benefit of programmers who choose to implement this behavior explicitly.
- Parameters:
factory
- the factory to which this object belongsname
- the name of the parameter being definedkeyType
- the type of the key; null if there is none
-
-
Method Details
-
errorMsg
protected String errorMsg(String key, Object... args) throws NullPointerException, MissingResourceException, ClassCastException Get an error message with standard formats. The formats are in the resource org.bzdev.obnaming.lpack.ParmParser A resource bundle is used so that the values can be localized. The jar file entry isorg.bzdev.obnaming.lpack.ParmParser.properties
and any locale-related entries. The keys are:static ResourceBundle mybundle = ResourceBundle.getBundle("..."); @Override protected String errorMsg(String key, Object... args) throws NullPointerException, MissingResourceException, ClassCastException { try { return super.errorMsg(key, args); } catch (Exception e) { return String.format(mybundle.getString(key), args); } }
- Parameters:
key
- the key naming the message formatargs
- the arguments used to format the message- Returns:
- the error message
- Throws:
NullPointerException
- if the key is nullMissingResourceException
- if no object for the given key can be foundClassCastException
- if the object found for the given key is not a string
-
keyString
Format a key as a string. Keys can be composed of named objects, enums, integers, strings, or long integers. A named object will be represented by the object's name. The other types are represented by using the toString() method for the corresponding object. Subkeys are separated by periods.This method is provided in order provide values for messages associated with exceptions that a parser may throw.
- Parameters:
key
- the key- Returns:
- a string representing the key
-
getParmName
Get the name of the parameter associated with this object. This is intended for use in generating messages when throwing exceptions. In particular, when parameters are initialized using scripts, the scripting engine may give a file and line number associated with a statement, not the line matching the parameter being set. For this reason, the exception's message should include the parameter name, and possibly a key, in order to help the user find the error.- Returns:
- the name of the parameter whose value this ParmParser sets
-
getAltParmParser
Get the alternate Parm. This is used so that a ParmParser has access the parent Parm of the Parm associated with the parser. In some cases associated with a Parm defined via @KeyedCompoundParm, a subclass will add a new @KeyedCompoundParm with the same value (the parameter name) in order to add additional entries. Having access to the original Parm is necessary for some operations.- Returns:
- the alternate Parm.
-
parse
public void parse(String value) throws IllegalArgumentException, UnsupportedOperationException, IllegalStateException Parse a string, run a validity check on the object created, and store the value.- Parameters:
value
- the value to parse and check- Throws:
IllegalArgumentException
- the argument was not validUnsupportedOperationException
- the parameter does not allow the use of this methodIllegalStateException
- the factory is not in a state for which this value may be parsed and entered
-
parse
public void parse(Object[] value) throws IllegalArgumentException, UnsupportedOperationException, IllegalStateException Parse an array, run a validity check, and, store the value. This will be called in response to an 'add' method of a factory.- Parameters:
value
- the array to process- Throws:
IllegalArgumentException
- the argument was not validUnsupportedOperationException
- the parameter does not allow the use of this methodIllegalStateException
- the factory is not in a state for which this value may be parsed and entered
-
parse
public void parse(NamedObjectOps value) throws IllegalArgumentException, UnsupportedOperationException, IllegalStateException Parse a named object and store the value.- Parameters:
value
- the array to process- Throws:
IllegalArgumentException
- the argument was not validUnsupportedOperationException
- the parameter does not allow the use of this methodIllegalStateException
- the factory is not in a state for which this value may be parsed and entered
-
parse
public void parse(Enum<?> value) throws IllegalArgumentException, UnsupportedOperationException, IllegalStateException Parse an instance of an enumeration and store the value.- Parameters:
value
- the array to process- Throws:
IllegalArgumentException
- the argument was not validUnsupportedOperationException
- the parameter does not allow the use of this methodIllegalStateException
- the factory is not in a state for which this value may be parsed and entered
-
parse
public void parse(int value) throws IllegalArgumentException, UnsupportedOperationException, IllegalStateException Process an int and store it.- Parameters:
value
- the value to store- Throws:
IllegalArgumentException
- the argument was not validUnsupportedOperationException
- the parameter does not allow the use of this methodIllegalStateException
- the factory is not in a state for which this value may be parsed and entered
-
parse
public void parse(IntegerRandomVariable value) throws IllegalArgumentException, UnsupportedOperationException, IllegalStateException Process an integer-valued random variable and store it.- Parameters:
value
- the random variable to store- Throws:
IllegalArgumentException
- the argument was not validUnsupportedOperationException
- the parameter does not allow the use of this methodIllegalStateException
- the factory is not in a state for which this value may be parsed and entered
-
parse
public void parse(IntegerRandomVariableRV value) throws IllegalArgumentException, UnsupportedOperationException, IllegalStateException Process an integer-random-variable-valued random variable and store it.- Parameters:
value
- the random variable to store- Throws:
IllegalArgumentException
- the argument was not validUnsupportedOperationException
- the parameter does not allow the use of this methodIllegalStateException
- the factory is not in a state for which this value may be parsed and entered
-
parse
public void parse(long value) throws IllegalArgumentException, UnsupportedOperationException, IllegalStateException Process a long and store it.- Parameters:
value
- the value to store- Throws:
IllegalArgumentException
- the argument was not validUnsupportedOperationException
- the parameter does not allow the use of this methodIllegalStateException
- the factory is not in a state for which this value may be parsed and entered
-
parse
public void parse(LongRandomVariable value) throws IllegalArgumentException, UnsupportedOperationException, IllegalStateException Process a long-valued random variable and store it.- Parameters:
value
- the random variable to store- Throws:
IllegalArgumentException
- the argument was not validUnsupportedOperationException
- the parameter does not allow the use of this methodIllegalStateException
- the factory is not in a state for which this value may be parsed and entered
-
parse
public void parse(LongRandomVariableRV value) throws IllegalArgumentException, UnsupportedOperationException, IllegalStateException Process a long-random-variable-valued random variable and store it.- Parameters:
value
- the random variable to store- Throws:
IllegalArgumentException
- the argument was not validUnsupportedOperationException
- the parameter does not allow the use of this methodIllegalStateException
- the factory is not in a state for which this value may be parsed and entered
-
parse
public void parse(double value) throws IllegalArgumentException, UnsupportedOperationException, IllegalStateException Process a double and store it.- Parameters:
value
- the value to store- Throws:
IllegalArgumentException
- the argument was not validUnsupportedOperationException
- the parameter does not allow the use of this methodIllegalStateException
- the factory is not in a state for which this value may be parsed and entered
-
parse
public void parse(DoubleRandomVariable value) throws IllegalArgumentException, UnsupportedOperationException, IllegalStateException Process a double-valued random variable and store it.- Parameters:
value
- the random variable to store- Throws:
IllegalArgumentException
- the argument was not validUnsupportedOperationException
- the parameter does not allow the use of this methodIllegalStateException
- the factory is not in a state for which this value may be parsed and entered
-
parse
public void parse(DoubleRandomVariableRV value) throws IllegalArgumentException, UnsupportedOperationException, IllegalStateException Process a double-random-variable-valued random variable and store it.- Parameters:
value
- the random variable to store- Throws:
IllegalArgumentException
- the argument was not validUnsupportedOperationException
- the parameter does not allow the use of this methodIllegalStateException
- the factory is not in a state for which this value may be parsed and entered
-
parse
public void parse(boolean value) throws IllegalArgumentException, UnsupportedOperationException, IllegalStateException Process a boolean and store it.- Parameters:
value
- the value to store- Throws:
IllegalArgumentException
- the argument was not validUnsupportedOperationException
- the parameter does not allow the use of this methodIllegalStateException
- the factory is not in a state for which this value may be parsed and entered
-
parse
public void parse(BooleanRandomVariable value) throws IllegalArgumentException, UnsupportedOperationException, IllegalStateException Process a boolean-valued random variable and store it.- Parameters:
value
- the random variable to store- Throws:
IllegalArgumentException
- the argument was not validUnsupportedOperationException
- the parameter does not allow the use of this methodIllegalStateException
- the factory is not in a state for which this value may be parsed and entered
-
parse
public void parse(BooleanRandomVariableRV value) throws IllegalArgumentException, UnsupportedOperationException, IllegalStateException Process a boolean-random-variable-valued random variable and store it.- Parameters:
value
- the random variable to store- Throws:
IllegalArgumentException
- the argument was not validUnsupportedOperationException
- the parameter does not allow the use of this methodIllegalStateException
- the factory is not in a state for which this value may be parsed and entered
-
parse
public void parse(int index, NamedObjectOps value) throws IllegalArgumentException, UnsupportedOperationException, IndexOutOfBoundsException, IllegalStateException Parse a named object and run a validity check on the object created, storing it in the location specified by an index.- Parameters:
index
- the index of the object createdvalue
- the value to parse and check- Throws:
IllegalArgumentException
- the argument was not validUnsupportedOperationException
- the parameter does not allow the use of this methodIllegalStateException
- the factory is not in a state for which this value may be parsed and enteredIndexOutOfBoundsException
- the index is not in a legal range
-
parse
public void parse(int index, Enum<?> value) throws IllegalArgumentException, UnsupportedOperationException, IndexOutOfBoundsException, IllegalStateException Parse an enumeration and run a validity check on the object created, storing it in the location specified by an index.- Parameters:
index
- the index of the object createdvalue
- the value to parse and check- Throws:
IllegalArgumentException
- the argument was not validUnsupportedOperationException
- the parameter does not allow the use of this methodIllegalStateException
- the factory is not in a state for which this value may be parsed and enteredIndexOutOfBoundsException
- the index is not in a legal range
-
parse
public void parse(int index, String value) throws IllegalArgumentException, UnsupportedOperationException, IndexOutOfBoundsException, IllegalStateException Parse a string and run a validity check on the object created, storing it in the location specified by an index.- Parameters:
index
- the index of the object createdvalue
- the value to parse and check- Throws:
IllegalArgumentException
- the argument was not validUnsupportedOperationException
- the parameter does not allow the use of this methodIllegalStateException
- the factory is not in a state for which this value may be parsed and enteredIndexOutOfBoundsException
- the index is not in a legal range
-
parse
public void parse(int index, int value) throws IllegalArgumentException, UnsupportedOperationException, IndexOutOfBoundsException, IllegalStateException Process an int and store it in the location specified by an index.- Parameters:
index
- the index of the object createdvalue
- the value to store- Throws:
IllegalArgumentException
- the argument was not validUnsupportedOperationException
- the parameter does not allow the use of this methodIllegalStateException
- the factory is not in a state for which this value may be parsed and enteredIndexOutOfBoundsException
- the index is not in a legal range
-
parse
public void parse(int index, IntegerRandomVariable value) throws IllegalArgumentException, UnsupportedOperationException, IndexOutOfBoundsException, IllegalStateException Process an integer-valued random variable and store it in the location specified by an index.- Parameters:
index
- the index of the object createdvalue
- the random variable to store- Throws:
IllegalArgumentException
- the argument was not validUnsupportedOperationException
- the parameter does not allow the use of this methodIllegalStateException
- the factory is not in a state for which this value may be parsed and enteredIndexOutOfBoundsException
- the index is not in a legal range
-
parse
public void parse(int index, IntegerRandomVariableRV value) throws IllegalArgumentException, UnsupportedOperationException, IndexOutOfBoundsException, IllegalStateException Process an integer-random-variable-valued random variable and store it in the location specified by an index.- Parameters:
index
- the index of the object createdvalue
- the random variable to store- Throws:
IllegalArgumentException
- the argument was not validUnsupportedOperationException
- the parameter does not allow the use of this methodIllegalStateException
- the factory is not in a state for which this value may be parsed and enteredIndexOutOfBoundsException
- the index is not in a legal range
-
parse
public void parse(int index, long value) throws IllegalArgumentException, UnsupportedOperationException, IndexOutOfBoundsException, IllegalStateException Process a long and store it in the location specified by an index.- Parameters:
index
- the index of the object createdvalue
- the value to store- Throws:
IllegalArgumentException
- the argument was not validUnsupportedOperationException
- the parameter does not allow the use of this methodIllegalStateException
- the factory is not in a state for which this value may be parsed and enteredIndexOutOfBoundsException
- the index is not in a legal range
-
parse
public void parse(int index, LongRandomVariable value) throws IllegalArgumentException, UnsupportedOperationException, IndexOutOfBoundsException, IllegalStateException Process a long-valued random variable and store it in the location specified by an index.- Parameters:
index
- the index of the object createdvalue
- the random variable to store- Throws:
IllegalArgumentException
- the argument was not validUnsupportedOperationException
- the parameter does not allow the use of this methodIllegalStateException
- the factory is not in a state for which this value may be parsed and enteredIndexOutOfBoundsException
- the index is not in a legal range
-
parse
public void parse(int index, LongRandomVariableRV value) throws IllegalArgumentException, UnsupportedOperationException, IndexOutOfBoundsException, IllegalStateException Process a long-random-variable-valued random variable and store it in the location specified by an index.- Parameters:
index
- the index of the object createdvalue
- the random variable to store- Throws:
IllegalArgumentException
- the argument was not validUnsupportedOperationException
- the parameter does not allow the use of this methodIllegalStateException
- the factory is not in a state for which this value may be parsed and enteredIndexOutOfBoundsException
- the index is not in a legal range
-
parse
public void parse(int index, double value) throws IllegalArgumentException, UnsupportedOperationException, IndexOutOfBoundsException, IllegalStateException Process a double and store it in the location specified by an index.- Parameters:
index
- the index of the object createdvalue
- the value to store- Throws:
IllegalArgumentException
- the argument was not validUnsupportedOperationException
- the parameter does not allow the use of this methodIllegalStateException
- the factory is not in a state for which this value may be parsed and enteredIndexOutOfBoundsException
- the index is not in a legal range
-
parse
public void parse(int index, DoubleRandomVariable value) throws IllegalArgumentException, UnsupportedOperationException, IndexOutOfBoundsException, IllegalStateException Process a double-valued random variable and store it in the location specified by an index.- Parameters:
index
- the index of the object createdvalue
- the random variable to store- Throws:
IllegalArgumentException
- the argument was not validUnsupportedOperationException
- the parameter does not allow the use of this methodIllegalStateException
- the factory is not in a state for which this value may be parsed and enteredIndexOutOfBoundsException
- the index is not in a legal range
-
parse
public void parse(int index, DoubleRandomVariableRV value) throws IllegalArgumentException, UnsupportedOperationException, IndexOutOfBoundsException, IllegalStateException Process a double-random-variable-valued random variable and store it in the location specified by an index.- Parameters:
index
- the index of the object createdvalue
- the random variable to store- Throws:
IllegalArgumentException
- the argument was not validUnsupportedOperationException
- the parameter does not allow the use of this methodIllegalStateException
- the factory is not in a state for which this value may be parsed and enteredIndexOutOfBoundsException
- the index is not in a legal range
-
parse
public void parse(int index, boolean value) throws IllegalArgumentException, UnsupportedOperationException, IndexOutOfBoundsException, IllegalStateException Process a boolean and store it in the location specified by an index.- Parameters:
index
- the index of the object createdvalue
- the value to store- Throws:
IllegalArgumentException
- the argument was not validUnsupportedOperationException
- the parameter does not allow the use of this methodIllegalStateException
- the factory is not in a state for which this value may be parsed and enteredIndexOutOfBoundsException
- the index is not in a legal range
-
parse
public void parse(int index, BooleanRandomVariable value) throws IllegalArgumentException, UnsupportedOperationException, IndexOutOfBoundsException, IllegalStateException Process a boolean-valued random variable and store it in the location specified by an index.- Parameters:
index
- the index of the object createdvalue
- the random variable to store- Throws:
IllegalArgumentException
- the argument was not validUnsupportedOperationException
- the parameter does not allow the use of this methodIllegalStateException
- the factory is not in a state for which this value may be parsed and enteredIndexOutOfBoundsException
- the index is not in a legal range
-
parse
public void parse(int index, BooleanRandomVariableRV value) throws IllegalArgumentException, UnsupportedOperationException, IndexOutOfBoundsException, IllegalStateException Process a boolean-random-variable-valued random variable and store it in the location specified by an index.- Parameters:
index
- the index of the object createdvalue
- the random variable to store- Throws:
IllegalArgumentException
- the argument was not validUnsupportedOperationException
- the parameter does not allow the use of this methodIllegalStateException
- the factory is not in a state for which this value may be parsed and enteredIndexOutOfBoundsException
- the index is not in a legal range
-
parse
public void parse(NamedObjectOps key, NamedObjectOps value) throws IllegalArgumentException, UnsupportedOperationException, IllegalStateException Parse a named object and run a validity check on the object created, storing it in the location specified by a named-object key.- Parameters:
key
- the key of the object createdvalue
- the value to parse and check- Throws:
IllegalArgumentException
- the argument was not validUnsupportedOperationException
- the parameter does not allow the use of this methodIllegalStateException
- the factory is not in a state for which this value may be parsed and enteredIndexOutOfBoundsException
- the key is not in a legal range
-
parse
public void parse(NamedObjectOps key, Enum<?> value) throws IllegalArgumentException, UnsupportedOperationException, IllegalStateException Parse an enumeration and run a validity check on the object created, storing it in the location specified by a named-object key.- Parameters:
key
- the key of the object createdvalue
- the value to parse and check- Throws:
IllegalArgumentException
- the argument was not validUnsupportedOperationException
- the parameter does not allow the use of this methodIllegalStateException
- the factory is not in a state for which this value may be parsed and enteredIndexOutOfBoundsException
- the key is not in a legal range
-
parse
public void parse(NamedObjectOps key, String value) throws IllegalArgumentException, UnsupportedOperationException, IllegalStateException Parse a string and run a validity check on the object created, storing it in the location specified by a named-object key.- Parameters:
key
- the key of the object createdvalue
- the value to parse and check- Throws:
IllegalArgumentException
- the argument was not validUnsupportedOperationException
- the parameter does not allow the use of this methodIllegalStateException
- the factory is not in a state for which this value may be parsed and enteredIndexOutOfBoundsException
- the key is not in a legal range
-
parse
public void parse(NamedObjectOps key, int value) throws IllegalArgumentException, UnsupportedOperationException, IllegalStateException Process an int and store it in the location specified by a named-object key.- Parameters:
key
- the key of the object createdvalue
- the value to store- Throws:
IllegalArgumentException
- the argument was not validUnsupportedOperationException
- the parameter does not allow the use of this methodIllegalStateException
- the factory is not in a state for which this value may be parsed and enteredIndexOutOfBoundsException
- the key is not in a legal range
-
parse
public void parse(NamedObjectOps key, IntegerRandomVariable value) throws IllegalArgumentException, UnsupportedOperationException, IllegalStateException Process an integer-valued random variable and store it in the location specified by a named-object key.- Parameters:
key
- the key of the object createdvalue
- the random variable to store- Throws:
IllegalArgumentException
- the argument was not validUnsupportedOperationException
- the parameter does not allow the use of this methodIllegalStateException
- the factory is not in a state for which this value may be parsed and enteredIndexOutOfBoundsException
- the key is not in a legal range
-
parse
public void parse(NamedObjectOps key, IntegerRandomVariableRV value) throws IllegalArgumentException, UnsupportedOperationException, IllegalStateException Process an integer-random-variable-valued random variable and store it in the location specified by a named-object key.- Parameters:
key
- the key of the object createdvalue
- the random variable to store- Throws:
IllegalArgumentException
- the argument was not validUnsupportedOperationException
- the parameter does not allow the use of this methodIllegalStateException
- the factory is not in a state for which this value may be parsed and enteredIndexOutOfBoundsException
- the key is not in a legal range
-
parse
public void parse(NamedObjectOps key, long value) throws IllegalArgumentException, UnsupportedOperationException, IllegalStateException Process a long and store it in the location specified by a named-object key.- Parameters:
key
- the key of the object createdvalue
- the value to store- Throws:
IllegalArgumentException
- the argument was not validUnsupportedOperationException
- the parameter does not allow the use of this methodIllegalStateException
- the factory is not in a state for which this value may be parsed and enteredIndexOutOfBoundsException
- the key is not in a legal range
-
parse
public void parse(NamedObjectOps key, LongRandomVariable value) throws IllegalArgumentException, UnsupportedOperationException, IllegalStateException Process a long-valued random variable and store it in the location specified by a named-object key.- Parameters:
key
- the key of the object createdvalue
- the random variable to store- Throws:
IllegalArgumentException
- the argument was not validUnsupportedOperationException
- the parameter does not allow the use of this methodIllegalStateException
- the factory is not in a state for which this value may be parsed and enteredIndexOutOfBoundsException
- the key is not in a legal range
-
parse
public void parse(NamedObjectOps key, LongRandomVariableRV value) throws IllegalArgumentException, UnsupportedOperationException, IllegalStateException Process a long-random-variable-valued random variable and store it in the location specified by a named-object key.- Parameters:
key
- the key of the object createdvalue
- the random variable to store- Throws:
IllegalArgumentException
- the argument was not validUnsupportedOperationException
- the parameter does not allow the use of this methodIllegalStateException
- the factory is not in a state for which this value may be parsed and enteredIndexOutOfBoundsException
- the key is not in a legal range
-
parse
public void parse(NamedObjectOps key, double value) throws IllegalArgumentException, UnsupportedOperationException, IllegalStateException Process a double and store it in the location specified by a named-object key.- Parameters:
key
- the key of the object createdvalue
- the value to store- Throws:
IllegalArgumentException
- the argument was not validUnsupportedOperationException
- the parameter does not allow the use of this methodIllegalStateException
- the factory is not in a state for which this value may be parsed and enteredIndexOutOfBoundsException
- the key is not in a legal range
-
parse
public void parse(NamedObjectOps key, DoubleRandomVariable value) throws IllegalArgumentException, UnsupportedOperationException, IllegalStateException Process a double-valued random variable and store it in the location specified by a named-object key.- Parameters:
key
- the key of the object createdvalue
- the random variable to store- Throws:
IllegalArgumentException
- the argument was not validUnsupportedOperationException
- the parameter does not allow the use of this methodIllegalStateException
- the factory is not in a state for which this value may be parsed and enteredIndexOutOfBoundsException
- the key is not in a legal range
-
parse
public void parse(NamedObjectOps key, DoubleRandomVariableRV value) throws IllegalArgumentException, UnsupportedOperationException, IllegalStateException Process a double-random-variable-valued random variable and store it in the location specified by a named-object key.- Parameters:
key
- the key of the object createdvalue
- the random variable to store- Throws:
IllegalArgumentException
- the argument was not validUnsupportedOperationException
- the parameter does not allow the use of this methodIllegalStateException
- the factory is not in a state for which this value may be parsed and enteredIndexOutOfBoundsException
- the key is not in a legal range
-
parse
public void parse(NamedObjectOps key, boolean value) throws IllegalArgumentException, UnsupportedOperationException, IllegalStateException Process a boolean and store it in the location specified by a named-object key.- Parameters:
key
- the key of the object createdvalue
- the value to store- Throws:
IllegalArgumentException
- the argument was not validUnsupportedOperationException
- the parameter does not allow the use of this methodIllegalStateException
- the factory is not in a state for which this value may be parsed and enteredIndexOutOfBoundsException
- the key is not in a legal range
-
parse
public void parse(NamedObjectOps key, BooleanRandomVariable value) throws IllegalArgumentException, UnsupportedOperationException, IllegalStateException Process a boolean-valued random variable and store it in the location specified by a named-object key.- Parameters:
key
- the key of the object createdvalue
- the random variable to store- Throws:
IllegalArgumentException
- the argument was not validUnsupportedOperationException
- the parameter does not allow the use of this methodIllegalStateException
- the factory is not in a state for which this value may be parsed and enteredIndexOutOfBoundsException
- the key is not in a legal range
-
parse
public void parse(NamedObjectOps key, BooleanRandomVariableRV value) throws IllegalArgumentException, UnsupportedOperationException, IllegalStateException Process a boolean-random-variable-valued random variable and store it in the location specified by a named-object key.- Parameters:
key
- the key of the object createdvalue
- the random variable to store- Throws:
IllegalArgumentException
- the argument was not validUnsupportedOperationException
- the parameter does not allow the use of this methodIllegalStateException
- the factory is not in a state for which this value may be parsed and enteredIndexOutOfBoundsException
- the key is not in a legal range
-
parse
public void parse(Enum<?> key, NamedObjectOps value) throws IllegalArgumentException, UnsupportedOperationException, IllegalStateException Parse a named object and run a validity check on the object created, storing it in the location specified by an enumeration key.- Parameters:
key
- the key of the object createdvalue
- the value to parse and check- Throws:
IllegalArgumentException
- the argument was not validUnsupportedOperationException
- the parameter does not allow the use of this methodIllegalStateException
- the factory is not in a state for which this value may be parsed and enteredIndexOutOfBoundsException
- the key is not in a legal range
-
parse
public void parse(Enum<?> key, Enum<?> value) throws IllegalArgumentException, UnsupportedOperationException, IllegalStateException Parse an enumeration and run a validity check on the object created, storing it in the location specified by an enumeration key.- Parameters:
key
- the key of the object createdvalue
- the value to parse and check- Throws:
IllegalArgumentException
- the argument was not validUnsupportedOperationException
- the parameter does not allow the use of this methodIllegalStateException
- the factory is not in a state for which this value may be parsed and enteredIndexOutOfBoundsException
- the key is not in a legal range
-
parse
public void parse(Enum<?> key, String value) throws IllegalArgumentException, UnsupportedOperationException, IllegalStateException Parse a string and run a validity check on the object created, storing it in the location specified by an enumeration key.- Parameters:
key
- the key of the object createdvalue
- the value to parse and check- Throws:
IllegalArgumentException
- the argument was not validUnsupportedOperationException
- the parameter does not allow the use of this methodIllegalStateException
- the factory is not in a state for which this value may be parsed and enteredIndexOutOfBoundsException
- the key is not in a legal range
-
parse
public void parse(Enum<?> key, int value) throws IllegalArgumentException, UnsupportedOperationException, IllegalStateException Process an int and store it in the location specified by an enumeration key.- Parameters:
key
- the key of the object createdvalue
- the value to store- Throws:
IllegalArgumentException
- the argument was not validUnsupportedOperationException
- the parameter does not allow the use of this methodIllegalStateException
- the factory is not in a state for which this value may be parsed and enteredIndexOutOfBoundsException
- the key is not in a legal range
-
parse
public void parse(Enum<?> key, IntegerRandomVariable value) throws IllegalArgumentException, UnsupportedOperationException, IllegalStateException Process an integer-valued random variable and store it in the location specified by an enumeration key.- Parameters:
key
- the key of the object createdvalue
- the random variable to store- Throws:
IllegalArgumentException
- the argument was not validUnsupportedOperationException
- the parameter does not allow the use of this methodIllegalStateException
- the factory is not in a state for which this value may be parsed and enteredIndexOutOfBoundsException
- the key is not in a legal range
-
parse
public void parse(Enum<?> key, IntegerRandomVariableRV value) throws IllegalArgumentException, UnsupportedOperationException, IllegalStateException Process an integer-random-variable-valued random variable and store it in the location specified by an enumeration key.- Parameters:
key
- the key of the object createdvalue
- the random variable to store- Throws:
IllegalArgumentException
- the argument was not validUnsupportedOperationException
- the parameter does not allow the use of this methodIllegalStateException
- the factory is not in a state for which this value may be parsed and enteredIndexOutOfBoundsException
- the key is not in a legal range
-
parse
public void parse(Enum<?> key, long value) throws IllegalArgumentException, UnsupportedOperationException, IllegalStateException Process a long and store it in the location specified by an enumeration key.- Parameters:
key
- the key of the object createdvalue
- the value to store- Throws:
IllegalArgumentException
- the argument was not validUnsupportedOperationException
- the parameter does not allow the use of this methodIllegalStateException
- the factory is not in a state for which this value may be parsed and enteredIndexOutOfBoundsException
- the key is not in a legal range
-
parse
public void parse(Enum<?> key, LongRandomVariable value) throws IllegalArgumentException, UnsupportedOperationException, IllegalStateException Process a long-valued random variable and store it in the location specified by an enumeration key.- Parameters:
key
- the key of the object createdvalue
- the random variable to store- Throws:
IllegalArgumentException
- the argument was not validUnsupportedOperationException
- the parameter does not allow the use of this methodIllegalStateException
- the factory is not in a state for which this value may be parsed and enteredIndexOutOfBoundsException
- the key is not in a legal range
-
parse
public void parse(Enum<?> key, LongRandomVariableRV value) throws IllegalArgumentException, UnsupportedOperationException, IllegalStateException Process a long-random-variable-valued random variable and store it in the location specified by an enumeration key.- Parameters:
key
- the key of the object createdvalue
- the random variable to store- Throws:
IllegalArgumentException
- the argument was not validUnsupportedOperationException
- the parameter does not allow the use of this methodIllegalStateException
- the factory is not in a state for which this value may be parsed and enteredIndexOutOfBoundsException
- the key is not in a legal range
-
parse
public void parse(Enum<?> key, double value) throws IllegalArgumentException, UnsupportedOperationException, IllegalStateException Process a double and store it in the location specified by an enumeration key.- Parameters:
key
- the key of the object createdvalue
- the value to store- Throws:
IllegalArgumentException
- the argument was not validUnsupportedOperationException
- the parameter does not allow the use of this methodIllegalStateException
- the factory is not in a state for which this value may be parsed and enteredIndexOutOfBoundsException
- the key is not in a legal range
-
parse
public void parse(Enum<?> key, DoubleRandomVariable value) throws IllegalArgumentException, UnsupportedOperationException, IllegalStateException Process a double-valued random variable and store it in the location specified by an enumeration key.- Parameters:
key
- the key of the object createdvalue
- the random variable to store- Throws:
IllegalArgumentException
- the argument was not validUnsupportedOperationException
- the parameter does not allow the use of this methodIllegalStateException
- the factory is not in a state for which this value may be parsed and enteredIndexOutOfBoundsException
- the key is not in a legal range
-
parse
public void parse(Enum<?> key, DoubleRandomVariableRV value) throws IllegalArgumentException, UnsupportedOperationException, IllegalStateException Process a double-random-variable-valued random variable and store it in the location specified by an enumeration key.- Parameters:
key
- the key of the object createdvalue
- the random variable to store- Throws:
IllegalArgumentException
- the argument was not validUnsupportedOperationException
- the parameter does not allow the use of this methodIllegalStateException
- the factory is not in a state for which this value may be parsed and enteredIndexOutOfBoundsException
- the key is not in a legal range
-
parse
public void parse(Enum<?> key, boolean value) throws IllegalArgumentException, UnsupportedOperationException, IllegalStateException Process a boolean and store it in the location specified by an enumeration key.- Parameters:
key
- the key of the object createdvalue
- the value to store- Throws:
IllegalArgumentException
- the argument was not validUnsupportedOperationException
- the parameter does not allow the use of this methodIllegalStateException
- the factory is not in a state for which this value may be parsed and enteredIndexOutOfBoundsException
- the key is not in a legal range
-
parse
public void parse(Enum<?> key, BooleanRandomVariable value) throws IllegalArgumentException, UnsupportedOperationException, IllegalStateException Process a boolean-valued random variable and store it in the location specified by an enumeration key.- Parameters:
key
- the key of the object createdvalue
- the random variable to store- Throws:
IllegalArgumentException
- the argument was not validUnsupportedOperationException
- the parameter does not allow the use of this methodIllegalStateException
- the factory is not in a state for which this value may be parsed and enteredIndexOutOfBoundsException
- the key is not in a legal range
-
parse
public void parse(Enum<?> key, BooleanRandomVariableRV value) throws IllegalArgumentException, UnsupportedOperationException, IllegalStateException Process a boolean-random-variable-valued random variable and store it in the location specified by an enumeration key.- Parameters:
key
- the key of the object createdvalue
- the random variable to store- Throws:
IllegalArgumentException
- the argument was not validUnsupportedOperationException
- the parameter does not allow the use of this methodIllegalStateException
- the factory is not in a state for which this value may be parsed and enteredIndexOutOfBoundsException
- the key is not in a legal range
-
parse
public void parse(Object[] key, NamedObjectOps value) throws IllegalArgumentException, UnsupportedOperationException, IllegalStateException Parse a named object and run a validity check on the object created, storing it in the location specified by a compound key.- Parameters:
key
- the key of the object createdvalue
- the value to parse and check- Throws:
IllegalArgumentException
- the argument was not validUnsupportedOperationException
- the parameter does not allow the use of this methodIllegalStateException
- the factory is not in a state for which this value may be parsed and enteredIndexOutOfBoundsException
- the key is not in a legal range
-
parse
public void parse(Object[] key, Enum<?> value) throws IllegalArgumentException, UnsupportedOperationException, IllegalStateException Parse an enumeration and run a validity check on the object created, storing it in the location specified by a compound key.- Parameters:
key
- the key of the object createdvalue
- the value to parse and check- Throws:
IllegalArgumentException
- the argument was not validUnsupportedOperationException
- the parameter does not allow the use of this methodIllegalStateException
- the factory is not in a state for which this value may be parsed and enteredIndexOutOfBoundsException
- the key is not in a legal range
-
parse
public void parse(Object[] key, String value) throws IllegalArgumentException, UnsupportedOperationException, IllegalStateException Parse a string and run a validity check on the object created, storing it in the location specified by a compound key.- Parameters:
key
- the key of the object createdvalue
- the value to parse and check- Throws:
IllegalArgumentException
- the argument was not validUnsupportedOperationException
- the parameter does not allow the use of this methodIllegalStateException
- the factory is not in a state for which this value may be parsed and enteredIndexOutOfBoundsException
- the key is not in a legal range
-
parse
public void parse(Object[] key, int value) throws IllegalArgumentException, UnsupportedOperationException, IllegalStateException Process an int and store it in the location specified by a compound key.- Parameters:
key
- the key of the object createdvalue
- the value to store- Throws:
IllegalArgumentException
- the argument was not validUnsupportedOperationException
- the parameter does not allow the use of this methodIllegalStateException
- the factory is not in a state for which this value may be parsed and enteredIndexOutOfBoundsException
- the key is not in a legal range
-
parse
public void parse(Object[] key, IntegerRandomVariable value) throws IllegalArgumentException, UnsupportedOperationException, IllegalStateException Process an integer-valued random variable and store it in the location specified by a compound key.- Parameters:
key
- the key of the object createdvalue
- the random variable to store- Throws:
IllegalArgumentException
- the argument was not validUnsupportedOperationException
- the parameter does not allow the use of this methodIllegalStateException
- the factory is not in a state for which this value may be parsed and enteredIndexOutOfBoundsException
- the key is not in a legal range
-
parse
public void parse(Object[] key, IntegerRandomVariableRV value) throws IllegalArgumentException, UnsupportedOperationException, IllegalStateException Process an integer-random-variable-valued random variable and store it in the location specified by a compound key.- Parameters:
key
- the key of the object createdvalue
- the random variable to store- Throws:
IllegalArgumentException
- the argument was not validUnsupportedOperationException
- the parameter does not allow the use of this methodIllegalStateException
- the factory is not in a state for which this value may be parsed and enteredIndexOutOfBoundsException
- the key is not in a legal range
-
parse
public void parse(Object[] key, long value) throws IllegalArgumentException, UnsupportedOperationException, IllegalStateException Process a long and store it in the location specified by a compound key.- Parameters:
key
- the key of the object createdvalue
- the value to store- Throws:
IllegalArgumentException
- the argument was not validUnsupportedOperationException
- the parameter does not allow the use of this methodIllegalStateException
- the factory is not in a state for which this value may be parsed and enteredIndexOutOfBoundsException
- the key is not in a legal range
-
parse
public void parse(Object[] key, LongRandomVariable value) throws IllegalArgumentException, UnsupportedOperationException, IllegalStateException Process a long-valued random variable and store it in the location specified by a compound key.- Parameters:
key
- the key of the object createdvalue
- the random variable to store- Throws:
IllegalArgumentException
- the argument was not validUnsupportedOperationException
- the parameter does not allow the use of this methodIllegalStateException
- the factory is not in a state for which this value may be parsed and enteredIndexOutOfBoundsException
- the key is not in a legal range
-
parse
public void parse(Object[] key, LongRandomVariableRV value) throws IllegalArgumentException, UnsupportedOperationException, IllegalStateException Process a long-random-variable-valued random variable and store it in the location specified by a compound key.- Parameters:
key
- the key of the object createdvalue
- the random variable to store- Throws:
IllegalArgumentException
- the argument was not validUnsupportedOperationException
- the parameter does not allow the use of this methodIllegalStateException
- the factory is not in a state for which this value may be parsed and enteredIndexOutOfBoundsException
- the key is not in a legal range
-
parse
public void parse(Object[] key, double value) throws IllegalArgumentException, UnsupportedOperationException, IllegalStateException Process a double and store it in the location specified by a compound key.- Parameters:
key
- the key of the object createdvalue
- the value to store- Throws:
IllegalArgumentException
- the argument was not validUnsupportedOperationException
- the parameter does not allow the use of this methodIllegalStateException
- the factory is not in a state for which this value may be parsed and enteredIndexOutOfBoundsException
- the key is not in a legal range
-
parse
public void parse(Object[] key, DoubleRandomVariable value) throws IllegalArgumentException, UnsupportedOperationException, IllegalStateException Process a double-valued random variable and store it in the location specified by a compound key.- Parameters:
key
- the key of the object createdvalue
- the random variable to store- Throws:
IllegalArgumentException
- the argument was not validUnsupportedOperationException
- the parameter does not allow the use of this methodIllegalStateException
- the factory is not in a state for which this value may be parsed and enteredIndexOutOfBoundsException
- the key is not in a legal range
-
parse
public void parse(Object[] key, DoubleRandomVariableRV value) throws IllegalArgumentException, UnsupportedOperationException, IllegalStateException Process a double-random-variable-valued random variable and store it in the location specified by a compound key.- Parameters:
key
- the key of the object createdvalue
- the random variable to store- Throws:
IllegalArgumentException
- the argument was not validUnsupportedOperationException
- the parameter does not allow the use of this methodIllegalStateException
- the factory is not in a state for which this value may be parsed and enteredIndexOutOfBoundsException
- the key is not in a legal range
-
parse
public void parse(Object[] key, boolean value) throws IllegalArgumentException, UnsupportedOperationException, IllegalStateException Process a boolean and store it in the location specified by a compound key.- Parameters:
key
- the key of the object createdvalue
- the value to store- Throws:
IllegalArgumentException
- the argument was not validUnsupportedOperationException
- the parameter does not allow the use of this methodIllegalStateException
- the factory is not in a state for which this value may be parsed and enteredIndexOutOfBoundsException
- the key is not in a legal range
-
parse
public void parse(Object[] key, BooleanRandomVariable value) throws IllegalArgumentException, UnsupportedOperationException, IllegalStateException Process a boolean-valued random variable and store it in the location specified by a compound key.- Parameters:
key
- the key of the object createdvalue
- the random variable to store- Throws:
IllegalArgumentException
- the argument was not validUnsupportedOperationException
- the parameter does not allow the use of this methodIllegalStateException
- the factory is not in a state for which this value may be parsed and enteredIndexOutOfBoundsException
- the key is not in a legal range
-
parse
public void parse(Object[] key, BooleanRandomVariableRV value) throws IllegalArgumentException, UnsupportedOperationException, IllegalStateException Process a boolean-random-variable-valued random variable and store it in the location specified by a compound key.- Parameters:
key
- the key of the object createdvalue
- the random variable to store- Throws:
IllegalArgumentException
- the argument was not validUnsupportedOperationException
- the parameter does not allow the use of this methodIllegalStateException
- the factory is not in a state for which this value may be parsed and enteredIndexOutOfBoundsException
- the key is not in a legal range
-
parse
public void parse(String key, String value) throws IllegalArgumentException, UnsupportedOperationException, IndexOutOfBoundsException, IllegalStateException Parse a string and run a validity check on the object created, storing it in the location specified by a key.- Parameters:
key
- the key of the object createdvalue
- the value to parse and check- Throws:
IllegalArgumentException
- the argument was not validUnsupportedOperationException
- the parameter does not allow the use of this methodIllegalStateException
- the factory is not in a state for which this value may be parsed and enteredIndexOutOfBoundsException
- the key is an index that is not in the legal range
-
parse
public void parse(String key, NamedObjectOps value) throws IllegalArgumentException, UnsupportedOperationException, IndexOutOfBoundsException, IllegalStateException Parse a named object and run a validity check on the object created, storing it in the location specified by an index.- Parameters:
key
- the key of the object createdvalue
- the value to parse and check- Throws:
IllegalArgumentException
- the argument was not validUnsupportedOperationException
- the parameter does not allow the use of this methodIllegalStateException
- the factory is not in a state for which this value may be parsed and enteredIndexOutOfBoundsException
- the index is not in a legal range
-
parse
public void parse(String key, Enum<?> value) throws IllegalArgumentException, UnsupportedOperationException, IndexOutOfBoundsException, IllegalStateException Parse an enumeration and run a validity check on the object created, storing it in the location specified by an index.- Parameters:
key
- the key of the object createdvalue
- the value to parse and check- Throws:
IllegalArgumentException
- the argument was not validUnsupportedOperationException
- the parameter does not allow the use of this methodIllegalStateException
- the factory is not in a state for which this value may be parsed and enteredIndexOutOfBoundsException
- the index is not in a legal range
-
parse
public void parse(String key, int value) throws IllegalArgumentException, UnsupportedOperationException, IndexOutOfBoundsException, IllegalStateException Process an int and store it in the location specified by a key.- Parameters:
key
- the key of the object createdvalue
- the value to store- Throws:
IllegalArgumentException
- the argument was not validUnsupportedOperationException
- the parameter does not allow the use of this methodIllegalStateException
- the factory is not in a state for which this value may be parsed and enteredIndexOutOfBoundsException
- the key is an index that is not in the legal range
-
parse
public void parse(String key, IntegerRandomVariable value) throws IllegalArgumentException, UnsupportedOperationException, IndexOutOfBoundsException, IllegalStateException Process an integer-valued random variable and store it in the location specified by a key.- Parameters:
key
- the key of the object createdvalue
- the random variable to store- Throws:
IllegalArgumentException
- the argument was not validUnsupportedOperationException
- the parameter does not allow the use of this methodIllegalStateException
- the factory is not in a state for which this value may be parsed and enteredIndexOutOfBoundsException
- the key is an index that is not in the legal range
-
parse
public void parse(String key, IntegerRandomVariableRV value) throws IllegalArgumentException, UnsupportedOperationException, IndexOutOfBoundsException, IllegalStateException Process an integer-random-variable-valued random variable and store it in the location specified by a key.- Parameters:
key
- the key of the object createdvalue
- the random variable to store- Throws:
IllegalArgumentException
- the argument was not validUnsupportedOperationException
- the parameter does not allow the use of this methodIllegalStateException
- the factory is not in a state for which this value may be parsed and enteredIndexOutOfBoundsException
- the key is an index that is not in the legal range
-
parse
public void parse(String key, long value) throws IllegalArgumentException, UnsupportedOperationException, IndexOutOfBoundsException, IllegalStateException Process a long and store it in the location specified by a key.- Parameters:
key
- the key of the object createdvalue
- the value to store- Throws:
IllegalArgumentException
- the argument was not validUnsupportedOperationException
- the parameter does not allow the use of this methodIllegalStateException
- the factory is not in a state for which this value may be parsed and enteredIndexOutOfBoundsException
- the key is an index that is not in the legal range
-
parse
public void parse(String key, LongRandomVariable value) throws IllegalArgumentException, UnsupportedOperationException, IndexOutOfBoundsException, IllegalStateException Process a long-valued random variable and store it in the location specified by a key.- Parameters:
key
- the key of the object createdvalue
- the random variable to store- Throws:
IllegalArgumentException
- the argument was not validUnsupportedOperationException
- the parameter does not allow the use of this methodIllegalStateException
- the factory is not in a state for which this value may be parsed and enteredIndexOutOfBoundsException
- the key is an index that is not in the legal range
-
parse
public void parse(String key, LongRandomVariableRV value) throws IllegalArgumentException, UnsupportedOperationException, IndexOutOfBoundsException, IllegalStateException Process a long-random-variable-valued random variable and store it in the location specified by a key.- Parameters:
key
- the key of the object createdvalue
- the random variable to store- Throws:
IllegalArgumentException
- the argument was not validUnsupportedOperationException
- the parameter does not allow the use of this methodIllegalStateException
- the factory is not in a state for which this value may be parsed and enteredIndexOutOfBoundsException
- the key is an index that is not in the legal range
-
parse
public void parse(String key, double value) throws IllegalArgumentException, UnsupportedOperationException, IndexOutOfBoundsException, IllegalStateException Process a double and store it in the location specified by a key.- Parameters:
key
- the key of the object createdvalue
- the value to store- Throws:
IllegalArgumentException
- the argument was not validUnsupportedOperationException
- the parameter does not allow the use of this methodIllegalStateException
- the factory is not in a state for which this value may be parsed and enteredIndexOutOfBoundsException
- the key is an index that is not in the legal range
-
parse
public void parse(String key, DoubleRandomVariable value) throws IllegalArgumentException, UnsupportedOperationException, IndexOutOfBoundsException, IllegalStateException Process a double-valued random variable and store it in the location specified by a key.- Parameters:
key
- the key of the object createdvalue
- the random variable to store- Throws:
IllegalArgumentException
- the argument was not validUnsupportedOperationException
- the parameter does not allow the use of this methodIllegalStateException
- the factory is not in a state for which this value may be parsed and enteredIndexOutOfBoundsException
- the key is an index that is not in the legal range
-
parse
public void parse(String key, DoubleRandomVariableRV value) throws IllegalArgumentException, UnsupportedOperationException, IndexOutOfBoundsException, IllegalStateException Process a double-random-variable-valued random variable and store it in the location specified by a key.- Parameters:
key
- the key of the object createdvalue
- the random variable to store- Throws:
IllegalArgumentException
- the argument was not validUnsupportedOperationException
- the parameter does not allow the use of this methodIllegalStateException
- the factory is not in a state for which this value may be parsed and enteredIndexOutOfBoundsException
- the key is an index that is not in the legal range
-
parse
public void parse(String key, boolean value) throws IllegalArgumentException, UnsupportedOperationException, IndexOutOfBoundsException, IllegalStateException Process a boolean and store it in the location specified by a key.- Parameters:
key
- the key of the object createdvalue
- the value to store- Throws:
IllegalArgumentException
- the argument was not validUnsupportedOperationException
- the parameter does not allow the use of this methodIllegalStateException
- the factory is not in a state for which this value may be parsed and enteredIndexOutOfBoundsException
- the key is an index that is not in the legal range
-
parse
public void parse(String key, BooleanRandomVariable value) throws IllegalArgumentException, UnsupportedOperationException, IndexOutOfBoundsException, IllegalStateException Process a boolean-valued random variable and store it in the location specified by a key.- Parameters:
key
- the key of the object createdvalue
- the random variable to store- Throws:
IllegalArgumentException
- the argument was not validUnsupportedOperationException
- the parameter does not allow the use of this methodIllegalStateException
- the factory is not in a state for which this value may be parsed and enteredIndexOutOfBoundsException
- the key is an index that is not in the legal range
-
parse
public void parse(String key, BooleanRandomVariableRV value) throws IllegalArgumentException, UnsupportedOperationException, IndexOutOfBoundsException, IllegalStateException Process a boolean-random-variable-valued random variable and store it in the location specified by a key.- Parameters:
key
- the key of the object createdvalue
- the random variable to store- Throws:
IllegalArgumentException
- the argument was not validUnsupportedOperationException
- the parameter does not allow the use of this methodIllegalStateException
- the factory is not in a state for which this value may be parsed and enteredIndexOutOfBoundsException
- the key is an index that is not in the legal range
-
clear
Removes the effect of calling parse.- Throws:
UnsupportedOperationException
- the parameter does not allow the use of this methodIllegalStateException
- the factory is in a state for which an entry cannot be cleared, typically the result of another entry being dependent on the current entry
-
clear
public void clear(int index) throws IllegalArgumentException, UnsupportedOperationException, IllegalStateException Removes the effect of calling parse with an index.- Parameters:
index
- the index- Throws:
IllegalArgumentException
- the argument has an illegal valueUnsupportedOperationException
- the parameter does not allow the use of this methodIllegalStateException
- the factory is in a state for which an entry cannot be cleared, typically the result of another entry being dependent on the current entry
-
clear
public void clear(String key) throws IllegalArgumentException, UnsupportedOperationException, IllegalStateException Removes the effect of calling parse with a key.- Parameters:
key
- the key- Throws:
IllegalArgumentException
- the argument has an illegal valueUnsupportedOperationException
- the parameter does not allow the use of this methodIllegalStateException
- the factory is in a state for which an entry cannot be cleared, typically the result of another entry being dependent on the current entry
-
clear
public void clear(NamedObjectOps key) throws IllegalArgumentException, UnsupportedOperationException, IllegalStateException Removes the effect of calling parse with a key that is a named object.- Parameters:
key
- the key- Throws:
IllegalArgumentException
- the argument has an illegal valueUnsupportedOperationException
- the parameter does not allow the use of this methodIllegalStateException
- the factory is in a state for which an entry cannot be cleared, typically the result of another entry being dependent on the current entry
-
clear
public void clear(Enum<?> key) throws IllegalArgumentException, UnsupportedOperationException, IllegalStateException Removes the effect of calling parse with a key that is an enumeration.- Parameters:
key
- the key- Throws:
IllegalArgumentException
- the argument has an illegal valueUnsupportedOperationException
- the parameter does not allow the use of this methodIllegalStateException
- the factory is in a state for which an entry cannot be cleared, typically the result of another entry being dependent on the current entry
-
clear
public void clear(Object[] key) throws IllegalArgumentException, UnsupportedOperationException, IllegalStateException Removes the effect of calling parse with a compound key.- Parameters:
key
- the key- Throws:
IllegalArgumentException
- the argument has an illegal valueUnsupportedOperationException
- the parameter does not allow the use of this methodIllegalStateException
- the factory is in a state for which an entry cannot be cleared, typically the result of another entry being dependent on the current entry
-