Initializing help system before first use

Scalar

Scalar


Purpose
Represents a scalar entity.
Example
Some examples of declaring scalar entities in the data model.
>>> @xi.AppConfig(name="My First Insight Python App",
...               version=xi.AppVersion(0, 1, 2))
... class MyApp(xi.AppBase):
...
...     # Examples where data type is inferred from default value
...     # Scalar "NumFactory" of type "xi.integer"; default value 10
...     NumFactory: xi.Scalar(10)
...     # Scalar "IsOn" of type "xi.boolean"; default value True
...     IsOn: xi.Scalar(True)
...
...     # Examples where data type is explicitly given.
...     RealScalar: xi.Scalar(dtype=xi.real)      # default value 0.0
...     StringScalar: xi.Scalar(dtype=xi.string)  # default value ""		
Related topics