|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuchicago.src.sim.parameter.rpl.AbstractRPLParameter
public abstract class AbstractRPLParameter
Default but not complete implementation of the RPLParameter interface.
| Field Summary | |
|---|---|
protected java.util.List |
childConsts
|
protected java.util.List |
childParams
|
protected uchicago.src.sim.parameter.rpl.AbstractRPLParameter.NumberConvertor |
convertor
|
protected int |
curIndex
|
protected java.lang.reflect.Method |
getMethod
|
protected java.lang.String |
name
|
protected java.lang.reflect.Method |
setMethod
|
protected java.lang.Class |
type
|
| Constructor Summary | |
|---|---|
AbstractRPLParameter(java.lang.String name)
Creates an AbstractRPLParameter with the specified name. |
|
| Method Summary | |
|---|---|
void |
addChildConstant(RPLParameter child)
Adds the specified RPLParameter as a child constant parameter of this RPLParameter. |
void |
addChildParameter(RPLParameter child)
Adds the specified RPLParameter as a child parameter of this RPLParameter. |
java.util.Iterator |
constantIterator()
Gets an Iterator over the child constant parameters of this RPLParameter. |
java.lang.String |
getName()
Gets the name of this RPLParameter. |
protected abstract java.lang.Object |
getValue()
Gets the current value of this AbstractRPLParameter. |
java.lang.Object |
getValue(SimModel model)
Gets the current value of this RPLParameter. |
protected abstract void |
invokeSet(SimModel model)
Invokes the model's set method for this parameter's value. |
java.util.Iterator |
parameterIterator()
Gets an Iterator over the child constant parameters of this RPLParameter. |
void |
setModelParameter(SimModel model)
Sets the model parameter to the current value of this RPLParameter. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface uchicago.src.sim.parameter.rpl.RPLParameter |
|---|
addToParent, next, reset |
| Field Detail |
|---|
protected java.lang.String name
protected java.util.List childParams
protected java.util.List childConsts
protected java.lang.reflect.Method setMethod
protected java.lang.reflect.Method getMethod
protected java.lang.Class type
protected int curIndex
protected uchicago.src.sim.parameter.rpl.AbstractRPLParameter.NumberConvertor convertor
| Constructor Detail |
|---|
public AbstractRPLParameter(java.lang.String name)
name - the name of the parameter.| Method Detail |
|---|
public java.lang.String getName()
getName in interface RPLParameterpublic void addChildParameter(RPLParameter child)
addChildParameter in interface RPLParameterchild - the child RPLParameterpublic void addChildConstant(RPLParameter child)
addChildConstant in interface RPLParameterchild - the child RPLParameter to add
public void setModelParameter(SimModel model)
throws RepastException
setModelParameter in interface RPLParametermodel - the model whose parameter we want to set
RepastException - if there is an error setting the parameter
protected abstract void invokeSet(SimModel model)
throws RepastException
model - the model to invoke the set method on
RepastException - if the method failspublic java.util.Iterator constantIterator()
constantIterator in interface RPLParameterpublic java.util.Iterator parameterIterator()
parameterIterator in interface RPLParameter
public java.lang.Object getValue(SimModel model)
throws RepastException
getValue in interface RPLParametermodel - the model associated with this RPLParameter
RepastException - if the value cannot be returnedprotected abstract java.lang.Object getValue()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||