org.kiama.machine.Machine

ParamState

class ParamState[T, U] extends State[HashMap[T, U]]

A parameterised item of abstract state machine state holding values of type U, associated with parameters of type T.

Source
Machine.scala
Linear Supertypes
State[HashMap[T, U]], AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. ParamState
  2. State
  3. AnyRef
  4. Any
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ParamState(psname: String)

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. def :=(t: HashMap[T, U]): Unit

    Update this item of state to the value t.

    Update this item of state to the value t. The update is actually delayed until the end of the step when all updates in that step happen simultaneously (along with consistency checking). The state value only becomes defined when this latter process happens.

    Definition Classes
    State
  5. def =:=(t: HashMap[T, U]): Boolean

    Equality on the underlying value.

    Equality on the underlying value. If this state item is undefined then it's not equal to anything.

    Definition Classes
    State
  6. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  7. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  8. var _value: Option[HashMap[T, U]]

    The value of this item of state.

    The value of this item of state. None means undefined.

    Attributes
    protected
    Definition Classes
    State
  9. def apply(t: T): ParamUpdater[T, U]

    Return an updater for the value at parameter t.

    Return an updater for the value at parameter t. Used as s(t) this will return the value in the state s at parameter t. Used as s(t) := u this will update the value to u at parameter t. The update is actually delayed until the end of the step when all updates in that step happen simultaneously (along with consistency checking). The state value only becomes defined when this latter process happens.

  10. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  11. def change(t: T, u: U): Unit

    Change this item of state to the value u at parameter t.

    Change this item of state to the value u at parameter t. The change occurs immediately.

  12. def change(t: HashMap[T, U]): Unit

    Change this item of state to the value t.

    Change this item of state to the value t. The change occurs immediately.

    Definition Classes
    State
  13. def clone(): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  14. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  15. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  16. def finalize(): Unit

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  17. final def getClass(): java.lang.Class[_]

    Definition Classes
    AnyRef → Any
  18. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  19. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  20. def isUndefined(t: T): Boolean

    Is this state item undefined at t or not ?

  21. def isUndefined: Boolean

    Is this state item undefined or not?

    Is this state item undefined or not?

    Definition Classes
    State
  22. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  23. final def notify(): Unit

    Definition Classes
    AnyRef
  24. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  25. val psname: String

  26. val sname: String

    Definition Classes
    State
  27. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  28. def toString(): String

    Make a printable representation for the contents of this state object.

    Make a printable representation for the contents of this state object.

    Definition Classes
    State → AnyRef → Any
  29. def undefine(t: T): Unit

    Make this state item undefined at t.

  30. def undefine: Unit

    Make this state item undefined.

    Make this state item undefined.

    Definition Classes
    State
  31. def value(t: T): U

    Return the value of this state item if it's defined at parameter t.

    Return the value of this state item if it's defined at parameter t. Otherwise abort execution.

  32. def value: HashMap[T, U]

    Return the value of this state item if it's defined.

    Return the value of this state item if it's defined. Otherwise abort execution.

    Definition Classes
    State
  33. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  34. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  35. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from State[HashMap[T, U]]

Inherited from AnyRef

Inherited from Any