|
||||||||||
| 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.ListRPLParameter
public class ListRPLParameter
Defines a parameter whose values are drawn from a list. Calling "next" on this parameter will increment the list index to the next item in the list.
| Field Summary |
|---|
| Fields inherited from class uchicago.src.sim.parameter.rpl.AbstractRPLParameter |
|---|
childConsts, childParams, convertor, curIndex, getMethod, name, setMethod, type |
| Constructor Summary | |
|---|---|
ListRPLParameter(java.lang.String name,
RPLList list)
Creates a ListRPLParameter with the specified name and from the specified RPLList. |
|
| Method Summary | |
|---|---|
protected java.lang.Object |
getValue()
Gets the current value of this ListRPLParameter. |
protected boolean |
incrementSelf()
Sets the curernt value of this ListRPLParameter to the next item in its list. |
protected void |
invokeSet(SimModel model)
Invokes the model's appropriate set method with the value of the current item of this list as an argument. |
void |
reset()
Resets the current value of this ListRPLParameter to the first item in its list of items. |
java.lang.String |
toString()
|
| Methods inherited from class uchicago.src.sim.parameter.rpl.AbstractDynamicParameter |
|---|
addToParent, next |
| Methods inherited from class uchicago.src.sim.parameter.rpl.AbstractRPLParameter |
|---|
addChildConstant, addChildParameter, constantIterator, getName, getValue, parameterIterator, setModelParameter |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ListRPLParameter(java.lang.String name,
RPLList list)
name - the name of the parameterlist - the list of values contained by this parameter| Method Detail |
|---|
protected void invokeSet(SimModel model)
throws RepastException
invokeSet in class AbstractRPLParametermodel - the model to invoke the set method on
RepastException - if the invocation failsprotected boolean incrementSelf()
incrementSelf in class AbstractDynamicParameterpublic void reset()
reset in interface RPLParameterreset in class AbstractDynamicParameterprotected java.lang.Object getValue()
getValue in class AbstractRPLParameterpublic 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 | |||||||||