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

© 2001-2020 Fair Isaac Corporation. All rights reserved. This documentation is the property of Fair Isaac Corporation (“FICO”). Receipt or possession of this documentation does not convey rights to disclose, reproduce, make derivative works, use, or allow others to use it except solely for internal evaluation purposes to determine whether to purchase a license to the software described in this documentation, or as otherwise set forth in a written software license agreement between you and FICO (or a FICO affiliate). Use of this documentation and the software described in it must conform strictly to the foregoing permitted uses, and no other use is permitted.