|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmapss.dif.DIFParameter
public class DIFParameter
Parameter class for DIF graph. The value of a DIFParameter can be one of the following type: Integer, Double, Complex, String, Boolean, int[], double[], Complex[], int[][], double[][], Complex[][], ArrayList.
The DIF refinement block can set a sub-parameter by referring to the parameter in the current graph. In other words, the_value of a DIFParameter can refer to another DIFParameter in the super graph. This semantics are useful in parameterized graph.
A parameter can be specified by its interval range, ie, a parameter's value
can be set as an IntervalCollection
containing the lower and upper bound or discrete region of this parameter.
In conclusion, a DIFParameter contains a valid value or
a valid DIFParameter in super graph or a valid IntervalCollection
.
DIFGraph
Constructor Summary | |
---|---|
protected |
DIFParameter()
|
|
DIFParameter(java.lang.String name)
Constructs a new parameter with the given name. |
Method Summary | |
---|---|
protected java.lang.Object |
_cloneValue(java.lang.Object map)
Clone token value. |
protected void |
_setName(java.lang.String name)
Graph.addGraph(mocgraph.Graph) will modified the name if naming
conflict. |
java.lang.Object |
clone()
Clone this DIFParameter and return the cloned DIFParameter with the same name, same value. |
java.lang.Object |
clone(java.lang.Object map)
Return the cloned version of DIFParameter with the same name, same value, or cloned reference DIFParameter. |
boolean |
equals(java.lang.Object object)
Compare the DIFParameter object with the input object. |
DIFGraph |
getContainer()
Get DIFGraph which contains this parameter. |
java.lang.String |
getDataType()
Get datatype of the value of parameter. |
java.lang.String |
getName()
Get parameter name. |
DIFParameter |
getParameterDeeply()
Get parameter deeply. |
java.lang.Object |
getValue()
Get value. |
java.lang.Object |
getValueDeeply()
Get value deeply. |
int |
hashCode()
Hash code. |
protected void |
setContainer(DIFGraph container)
DIFGraph.setParameter() will set the back reference. |
void |
setDataType(java.lang.String datatype)
Set the datatype of the value of parameter. |
java.lang.Object |
setValue(java.lang.Object value)
Set parameter value. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected DIFParameter()
public DIFParameter(java.lang.String name)
name
- Name of the parameter.
java.lang.IllegalArgumentException
- If
Conventions.labelConvention(java.lang.String)
returns an error
for the parameter name.Method Detail |
---|
public java.lang.Object clone()
clone
in class java.lang.Object
public java.lang.Object clone(java.lang.Object map)
map
- The Map that contains the mapping
from the original reference value to the mirrored reference
value.
_cloneValue(Object)
public boolean equals(java.lang.Object object)
equals
in class java.lang.Object
object
- The DIFParameter instance.
public DIFGraph getContainer()
public java.lang.String getDataType()
public java.lang.String getName()
public java.lang.Object getValue()
public java.lang.Object getValueDeeply()
public DIFParameter getParameterDeeply()
public int hashCode()
hashCode
in class java.lang.Object
public void setDataType(java.lang.String datatype)
datatype
- public java.lang.Object setValue(java.lang.Object value)
value
- A value object. The current DIF language supports
are Integer, Double, Complex, String, Boolean, int[], double[],
Complex[], int[][], double[][], Complex[][], ArrayList,
other DIFParameter instance, or IntervalCollection.
public java.lang.String toString()
toString
in class java.lang.Object
protected void setContainer(DIFGraph container)
protected java.lang.Object _cloneValue(java.lang.Object map)
map
- The HashMap object.clone(Object)
protected void _setName(java.lang.String name)
Graph.addGraph(mocgraph.Graph)
will modified the name if naming
conflict.
name
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |