uchicago.src.sim.parameter.rpl
Class StringRPLConstant
java.lang.Object
uchicago.src.sim.parameter.rpl.AbstractRPLParameter
uchicago.src.sim.parameter.rpl.AbstractConstantParameter
uchicago.src.sim.parameter.rpl.StringRPLConstant
- All Implemented Interfaces:
- RPLParameter
public class StringRPLConstant
- extends AbstractConstantParameter
Defines a constant parameter whose value is a String.
- Version:
- $Revision: 1.5 $ $Date: 2004/10/19 18:12:55 $
|
Constructor Summary |
StringRPLConstant(java.lang.String name,
java.lang.String val)
Creates a StringRPLConstant with specified name and value. |
|
Method Summary |
protected java.lang.Object |
getValue()
Returns the value of this StringRPLConstant. |
protected void |
invokeSet(SimModel model)
Invokes the model's appropriate set method with this constant's
value as an argument. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
StringRPLConstant
public StringRPLConstant(java.lang.String name,
java.lang.String val)
- Creates a StringRPLConstant with specified name and value.
- Parameters:
name - the name of the parameterval - the value of the parameter
invokeSet
protected void invokeSet(SimModel model)
throws RepastException
- Invokes the model's appropriate set method with this constant's
value as an argument.
- Specified by:
invokeSet in class AbstractRPLParameter
- Parameters:
model - the model to invoke the set method on
- Throws:
RepastException - if the invocation fails
getValue
protected java.lang.Object getValue()
- Returns the value of this StringRPLConstant.
- Specified by:
getValue in class AbstractRPLParameter
- Returns:
- the value of this parameter.
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object