|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuchicago.src.sim.parameter.rpl.AbstractRPLParameter
uchicago.src.sim.parameter.rpl.AbstractDynamicParameter
uchicago.src.sim.parameter.rpl.BlockRPLParameter
public class BlockRPLParameter
RPLParameter created from a block definition. A BlockRPLParameter has no value of its own and only operates on its children.
| Field Summary |
|---|
| Fields inherited from class uchicago.src.sim.parameter.rpl.AbstractRPLParameter |
|---|
childConsts, childParams, convertor, curIndex, getMethod, name, setMethod, type |
| Constructor Summary | |
|---|---|
BlockRPLParameter(java.lang.String name)
Creates a BlockRPLParameter with the specified name. |
|
| Method Summary | |
|---|---|
protected java.lang.Object |
getValue()
Throws an UnsupportedOperationException as a BlockRPLParameter has no value to get. |
protected boolean |
incrementSelf()
Throws an UnsupportedOperationException as a BlockRPLParameter has no value to increment. |
protected void |
invokeSet(SimModel model)
Throws an UnsupportedOperationException as a BlockRPLParameter has no value and thus cannot set the parameter of a model to this BlockRPLParameter's current value. |
boolean |
next()
Increments value of the current child of this BlockRPLParameter. |
void |
setModelParameter(SimModel model)
Sets the model parameter to the current values of the child RPLParameter of this BlockRPLParameter. |
java.lang.String |
toString()
|
| Methods inherited from class uchicago.src.sim.parameter.rpl.AbstractDynamicParameter |
|---|
addToParent, reset |
| Methods inherited from class uchicago.src.sim.parameter.rpl.AbstractRPLParameter |
|---|
addChildConstant, addChildParameter, constantIterator, getName, getValue, parameterIterator |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public BlockRPLParameter(java.lang.String name)
name - the name of the block| Method Detail |
|---|
public boolean next()
next in interface RPLParameternext in class AbstractDynamicParameter
protected void invokeSet(SimModel model)
throws RepastException
invokeSet in class AbstractRPLParametermodel -
java.lang.UnsupportedOperationException
RepastException - if the method failsprotected java.lang.Object getValue()
getValue in class AbstractRPLParameterjava.lang.UnsupportedOperationException
public void setModelParameter(SimModel model)
throws RepastException
setModelParameter in interface RPLParametersetModelParameter in class AbstractRPLParametermodel - the model whose parameter we want to set
RepastException - if there is an error setting the parameterprotected boolean incrementSelf()
incrementSelf in class AbstractDynamicParameterjava.lang.UnsupportedOperationExceptionpublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||