uchicago.src.sim.parameter.rpl
Class BooleanRPLConstant

java.lang.Object
  extended by uchicago.src.sim.parameter.rpl.AbstractRPLParameter
      extended by uchicago.src.sim.parameter.rpl.AbstractConstantParameter
          extended by uchicago.src.sim.parameter.rpl.BooleanRPLConstant
All Implemented Interfaces:
RPLParameter

public class BooleanRPLConstant
extends AbstractConstantParameter

Represents a constant boolean parameter.

Version:
$Revision: 1.5 $ $Date: 2004/10/19 18:12:55 $

Field Summary
 
Fields inherited from class uchicago.src.sim.parameter.rpl.AbstractRPLParameter
childConsts, childParams, convertor, curIndex, getMethod, name, setMethod, type
 
Constructor Summary
BooleanRPLConstant(java.lang.String name, boolean val)
          Creates a BooleanRPLConstat with the specified name and value.
 
Method Summary
protected  java.lang.Object getValue()
          Gets the current value of this parameter.
protected  void invokeSet(SimModel model)
          Invokes the model's set method with this constants's value as an argument.
 java.lang.String toString()
           
 
Methods inherited from class uchicago.src.sim.parameter.rpl.AbstractConstantParameter
addToParent, next, reset
 
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

BooleanRPLConstant

public BooleanRPLConstant(java.lang.String name,
                          boolean val)
Creates a BooleanRPLConstat with the specified name and value.

Parameters:
name - the name of the parameter
val - the value of this BooleanRPLConstant
Method Detail

invokeSet

protected void invokeSet(SimModel model)
                  throws RepastException
Invokes the model's set method with this constants'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 method fails

getValue

protected java.lang.Object getValue()
Gets the current value of this parameter.

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