GChoiceKey
A key for a choice item similar to an enumeration
Value parameters
- choices
-
the available choices, the values set must be in the choices
- keyType
-
reference to an object of type KeyType[Choice]
- name
-
the name of the key
Attributes
- Graph
-
- Supertypes
Members list
Value members
Concrete methods
Sets the values for the key using a variable number of arguments
Sets the values for the key using a variable number of arguments
Value parameters
- values
-
one or more values
Attributes
- Returns
-
a parameter containing the key name, values
- Definition Classes
Inherited methods
Sets the values for the key This definition enables writing code like this:
Sets the values for the key This definition enables writing code like this:
val setup = sc(
prefix,
key1 -> value1 withUnits UnitsOfMeasure.Deg,
key2 -> value2 // with default units
)
Attributes
- Returns
-
a parameter containing the key name and one value (call withUnits() on the result to set the units)
- Inherited from:
- Key
Equals this Key instance with other by the keyName
Calculates a hash code value for the object.
Calculates a hash code value for the object.
The default hashing algorithm is platform dependent.
Note that it is allowed for two objects to have identical hash codes (o1.hashCode.equals(o2.hashCode)) yet not be equal (o1.equals(o2) returns false). A degenerate implementation could always return 0. However, it is required that if two objects are equal (o1.equals(o2) returns true) that they have identical hash codes (o1.hashCode.equals(o2.hashCode)). Therefore, when overriding this method, be sure to verify that the behavior is consistent with the equals method.
Attributes
Attributes
- Inherited from:
- Product
Attributes
- Inherited from:
- Product
Set values against this key
Set values against this key
Value parameters
- values
-
an Array of values
Attributes
- Returns
-
an instance of Parameter[S] containing the key name, values (call withUnits() on the result to set the units)
- Inherited from:
- Key