Home   :   Matrix Language   :   Matrix Language Directives   :   Type Directives

Type Directives

 

Directives

 

<<Same>>

<<First>>

<<Last>>

 

 

Same Directive

 

Type

BaseType

Fixed

Speed : 0.001 : 0.0 .. 300.0

Float

Probability : 5 : 0.0 .. 1.0

String

Text : 1023

Subtype

FixedSubtype

SubrangeFixed:Speed

Legal_Speed : <<Same>> : 0.0 .. 70.0

FloatSubtype

SubrangeFloat:Probability

Low_Probability : <<Same>> : 0.0 .. 0.25

StringSubtype

SubrangeString:Text

Command_Text :      100

Comment_Text : <<Same>>

 

The <<Same>> directive indicates that the value to be used is inherited from the originating type in a previous definition.

 

Special care should be taken over string types as the value chosen may be very large.

 

 

First Directive

 

Type

BaseType

Integer

Temperature : -100 .. 10000

Enumeration

Literal:Week_Day

MONDAY

TUESDAY

WEDNESDAY

THURSDAY

FRIDAY

SATURDAY

SUNDAY

Fixed

Speed : 0.001 : 0.0 .. 300.0

Float

Probability : 5 : 0.0 .. 1.0

Subtype

IntegerSubtype

SubrangeInteger:Temperature

Vat_Temperature : <<First>> .. 200

EnumerationSubtype

SubrangeEnumeration:Week_Day

Workday : <<First>> .. FRIDAY

Weekend : SATURDAY  .. SUNDAY

FixedSubtype

SubrangeFixed:Speed

Legal_Speed : 0.001 : <<First>> .. 70.0

FloatSubtype

SubrangeFloat:Probability

Low_Probability : 5 : <<First>> .. 0.25

 

The <<First>> directive indicates that the first value of the type is inherited from the originating type in a previous definition.

 

 

Last Directive

 

Type

BaseType

Integer

Temperature : -100 .. 10000

Enumeration

Literal:Week_Day

MONDAY

TUESDAY

WEDNESDAY

THURSDAY

FRIDAY

SATURDAY

SUNDAY

Fixed

Speed : 0.001 : 0.0 .. 300.0

Float

Probability : 5 : 0.0 .. 1.0

Subtype

IntegerSubtype

SubrangeInteger:Temperature

Vat_Temperature : 0 .. <<Last>>

EnumerationSubtype

SubrangeEnumeration:Week_Day

Workday : MONDAY   .. FRIDAY

Weekend : SATURDAY .. <<Last>>

FixedSubtype

SubrangeFixed:Speed

Illegal_Speed : 0.001 : 70.01 .. <<Last>>

FloatSubtype

SubrangeFloat:Probability

High_Probability : 5 : 0.75 .. <<Last>>

 

The <<Last>> directive indicates that the last value of the type is inherited from the originating type in a previous definition.

Copyright © 2017 Dark Matter Systems Ltd. All Rights Reserved.