Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## uchicago.src.sim.parameter.rpl
Class AbstractConstantParameter

    java.lang.Object
      uchicago.src.sim.parameter.rpl.AbstractRPLParameter
          uchicago.src.sim.parameter.rpl.AbstractConstantParameter

All Implemented Interfaces:
  RPLParameter

Direct Known Subclasses:
  BooleanRPLConstant, NumericRPLConstant, StringRPLConstant

    public abstract class AbstractConstantParameter

extends AbstractRPLParameter

Defines common behavior for constant RPLParameters.

Version:
  $Revision: 1.3 $ $Date: 2003/04/10 15:57:47 $

Field Summary

Fields inherited from class uchicago.src.sim.parameter.rpl.AbstractRPLParameter
`childConsts, childParams, convertor, curIndex, getMethod, name, setMethod, type`

Constructor Summary
`AbstractConstantParameter(java.lang.String name)` Creates an AbstractConstantParameter with the specified name.

Method Summary
`void` | `addToParent(RPLParameter parent)` Adds this AbstractConstantParameter to the specified parent.
`boolean` | `next()` Constants do not have "next" value and so this throws an UnsupportedOperationException if called.
`void` | `reset()` Resets this AbstractConstantParameter.

Methods inherited from class uchicago.src.sim.parameter.rpl.AbstractRPLParameter
`addChildConstant, addChildParameter, constantIterator, getName, getValue, getValue, invokeSet, parameterIterator, setModelParameter`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### AbstractConstantParameter

    public AbstractConstantParameter(java.lang.String name)

  Creates an AbstractConstantParameter with the specified name.

  Parameters:
    `name` - the name of the parameter.

Method Detail

### addToParent

    public void addToParent(RPLParameter parent)

  Adds this AbstractConstantParameter to the specified parent. This calls `parent.addChildConstant`.

  Parameters:
    `parent` - the parent RPLParameter to add this as a child

### reset

    public void reset()

  Resets this AbstractConstantParameter. As constants only have a single constant value this does nothing.

### next

    public boolean next()

  Constants do not have "next" value and so this throws an UnsupportedOperationException if called.

  Returns:
    throws UnsupportedOperationException
  Throws:
    `java.lang.UnsupportedOperationException`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD