Types
Contents
Types¶
JANI-model defines a type system for expressions.
- class momba.model.Type[source]¶
A type.
- property is_numeric¶
Indicates whether the type is numeric or not.
- types.INT = IntegerType()¶
- types.REAL = RealType()¶
- types.BOOL = BoolType()¶
- types.CLOCK = ClockType()¶
- types.CONTINUOUS = ContinuousType()¶
Class Hierarchy¶
- class momba.model.types.NumericType[source]¶
- property is_numeric¶
Indicates whether the type is numeric or not.
- class momba.model.types.IntegerType[source]¶
The integer type.
Hint
Instead of instantiating new objects of this class use
INT
.
- class momba.model.types.RealType[source]¶
The real type.
Hint
Instead of instantiating new objects of this class use
REAL
.
- class momba.model.types.BoolType[source]¶
The boolean type.
Hint
Instead of instantiating new objects of this class use
BOOL
.
- class momba.model.types.ClockType[source]¶
The clock type.
Hint
Instead of instantiating new objects of this class use
CLOCK
.
- class momba.model.types.ContinuousType[source]¶
The continuous type.
Hint
Instead of instantiating new objects of this class use
CONTINUOUS
.
- class momba.model.types.BoundedType(base, lower_bound, upper_bound)[source]¶
A bounded numeric type.
- base¶
The numeric base type.
- lower_bound¶
The optional lower bound for values of the type.
- upper_bound¶
The optional upper bound for values of the type.