Class: SystemValue

SystemValue

A value in the system

new SystemValue (json)

Name Type Description
json Object optional Json object describing the value
Properties:
Name Type Description
kind number The kind of value
value number The value

Members

create

Create a new value from kind and value

createValueCommand

Create a new value from a command and iterator

readOrDefaultDatabase

Try to read a database value, if not possible put default value

Methods

SystemValue.createNone ()SystemValue static

Create a none value
Returns:
Type Description
SystemValue

SystemValue.createNumber (n)SystemValue static

Create a new value number
Name Type Description
n number The number
Returns:
Type Description
SystemValue

SystemValue.createMessage (m)SystemValue static

Create a new value message
Name Type Description
m string The message
Returns:
Type Description
SystemValue

SystemValue.createNumberDouble (n)SystemValue static

Create a new value decimal number
Name Type Description
n number The number
Returns:
Type Description
SystemValue

SystemValue.createKeyBoard (k)SystemValue static

Create a new value keyBoard
Name Type Description
k number The key number
Returns:
Type Description
SystemValue

SystemValue.createSwitch (b)SystemValue static

Create a new value switch
Name Type Description
b boolean The value of the switch
Returns:
Type Description
SystemValue

SystemValue.createVariable (id)SystemValue static

Create a new value variable
Name Type Description
id number The variable id
Returns:
Type Description
SystemValue

SystemValue.createParameter (id)SystemValue static

Create a new value parameter
Name Type Description
id number The parameter id
Returns:
Type Description
SystemValue

SystemValue.createProperty (id)SystemValue static

Create a new value property
Name Type Description
id number The property id
Returns:
Type Description
SystemValue

SystemValue.readOrDefaultNumber (json, n)SystemValue static

Try to read a number value, if not possible put default value
Name Type Default Description
json number The json value
n number 0 optional The default value
Returns:
Type Description
SystemValue

SystemValue.readOrDefaultNumberDouble (json, n)SystemValue static

Try to read a double number value, if not possible put default value
Name Type Default Description
json number The json value
n number 0 optional The default value
Returns:
Type Description
SystemValue

SystemValue.readOrDefaultMessage (json, m)SystemValue static

Try to read a message value, if not possible put default value
Name Type Default Description
json number The json value
m number RPM.STRING_EMPTY optional The default value
Returns:
Type Description
SystemValue

SystemValue.readOrNone (json)SystemValue static

Try to read a value, if not possible put none value
Name Type Description
json number The json value
Returns:
Type Description
SystemValue

SystemValue.readFromJSON (json)SystemValue static

Read a value of any kind and return it
Name Type Description
json number The json value
Returns:
Type Description
SystemValue

read (json)

Read the JSON associated to the value
Name Type Description
json Object Json object describing the value

getValue ()number

Get the value
Returns:
Type Description
number

isEqual (value)boolean

Check if a value is equal to another one
Name Type Description
value SystemValue The value to compare
Returns:
Type Description
boolean