case class Parameter[S](keyName: String, keyType: KeyType[S], items: ArraySeq[S], units: Units) extends Product with Serializable
Parameter represents a KeyName, KeyType, array of values and units applicable to values. Parameter sits as payload for sending commands and events between components.
- S
the type of items this parameter holds
- keyName
the name of the key
- keyType
reference to an object of type KeyType[S]
- items
an Array of values of type S
- units
applicable units
- Alphabetic
- By Inheritance
- Parameter
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def apply(index: Int): S
Returns the value at the given index, throwing an exception if the index is out of range
Returns the value at the given index, throwing an exception if the index is out of range
- index
the index of a value
- returns
the value at the given index (may throw an exception if the index is out of range)
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def get(index: Int): Option[S]
Get method returns an option of value if present at the given index else none
Get method returns an option of value if present at the given index else none
- index
the index of a value
- returns
some value at the given index as an Option, if the index is in range, otherwise None
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- def head: S
Returns the first value as a convenience when storing a single value
Returns the first value as a convenience when storing a single value
- returns
the first or default value (Use this if you know there is only a single value)
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val items: ArraySeq[S]
- def jGet(index: Int): Optional[S]
A Java helper that returns an option of value if present at the given index else empty
A Java helper that returns an option of value if present at the given index else empty
- index
the index of a value
- returns
value at the given index as an Optional, if the index is in range, otherwise empty
- def jValues: List[S]
A Java helper that returns a List of values this parameter holds
- val keyName: String
- val keyType: KeyType[S]
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- def size: Int
The number of values in this parameter (values.size)
The number of values in this parameter (values.size)
- returns
length of the array of items
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
Returns a formatted string representation with a KeyName
Returns a formatted string representation with a KeyName
- Definition Classes
- Parameter → AnyRef → Any
- val units: Units
- def value(index: Int): S
Returns the value at the given index, throwing an exception if the index is out of range This is a Scala convenience method
Returns the value at the given index, throwing an exception if the index is out of range This is a Scala convenience method
- index
the index of a value
- returns
the value at the given index (may throw an exception if the index is out of range)
- def values: Array[S]
An Array of values this parameter holds
- def valuesToString: String
A comma separated string representation of all values this parameter holds
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- def withUnits(unitsIn: Units): Parameter[S]
Sets the units for the values
Sets the units for the values
- unitsIn
the units for the values
- returns
a new instance of this parameter with the units set