Home   :   Matrix Language   :   Pattern Statements   :   Define Include Statements

Define Include Statements

 

Statements

 

DefineSystemInclude

DefineMatrixInclude

DefineSiloInclude

DefineRealmInclude

DefineDomainInclude

DefineEntityInclude

DefineStateInclude

DefineActionInclude

DefineDomainProcessInclude

DefineEntityProcessInclude

 

 

General

 

A define include statement must appear as the first statement in every included file. All subsequent statements must be placed in its subregion. The statement names the include and the file in which it is held.

 

 

Associated Statements

 

The define include statements are used with the following Include statements:

 

SystemInclude

MatrixInclude

SiloInclude

RealmInclude

DomainInclude

EntityInclude

StateInclude

ActionInclude

ProcessDomainInclude

ProcessEntityInclude

 

For example, the named SystemInclude statement includes the statements specified by the similarly named DefineSystemInclude statement subregion.

 

 

DefineSystemInclude Statement

 

DefineSystemInclude:ModelApplication

...

 

The DefineSystemInclude statement introduces the statements that are to be included where the corresponding SystemInclude name is listed.

 

DefineSystemInclude files are held in the following folder:

 

M:\Matrix\Models\Passenger_Elevator\01System

 

 

DefineMatrixInclude Statement

 

DefineMatrixInclude:SiloM1SoftwareApplication

...

 

The DefineMatrixInclude statement introduces the statements that are to be included where the corresponding MatrixInclude name is listed.

 

DefineMatrixInclude files are held in the following folder:

 

M:\Matrix\Models\Passenger_Elevator\02Matrix

 

 

DefineSiloInclude Statement

 

DefineSiloInclude:RealmAnalysisOfApplication

...

 

The DefineSiloInclude statement introduces the statements that are to be included where the corresponding SiloInclude name is listed.

 

DefineSiloInclude files are held in the following folder:

 

M:\Matrix\Models\Passenger_Elevator\03Silo

 

 

DefineRealmInclude Statement

 

DefineRealmInclude:ElevatorManagement

...

 

The DefineRealmInclude statement introduces the statements that are to be included where the corresponding RealmInclude name is listed.

 

DefineRealmInclude files are held in the following folder:

 

M:\Matrix\Models\Passenger_Elevator\04Realm

 

 

DefineDomainInclude Statement

 

DefineDomainInclude:Car

...

 

The DefineDomainInclude statement introduces the statements that are to be included where the corresponding DomainInclude name is listed.

 

DefineDomainInclude files are held in the following folder:

 

M:\Matrix\Models\Passenger_Elevator\Elevator_Management\$Main

 

 

DefineEntityInclude Statement

 

DefineEntityInclude:States

...

 

The DefineEntityInclude statement introduces the statements that are to be included where the corresponding EntityInclude name is listed.

 

DefineEntityInclude files are held in the following folder:

 

M:\Matrix\Models\Passenger_Elevator\Elevator_Management\Car\$Main

 

 

DefineStateInclude Statement

 

DefineStateInclude:Closing

...

 

The DefineStateInclude statement introduces the statements that are to be included where the corresponding StateInclude name is listed.

 

DefineStateInclude files are held in the following folder:

 

M:\Matrix\Models\Passenger_Elevator\Elevator_Management\Car\01State\$Main

 

 

DefineActionInclude Statement

 

DefineActionInclude:StateAction

...

 

The DefineActionInclude statement introduces the statements that are to be included where the corresponding ActionInclude name is listed.

 

DefineActionInclude files are held in the following folder:

 

M:\Matrix\Models\Passenger_Elevator\Elevator_Management\Car\01State\Stationary

 

 

DefineDomainProcessInclude Statement

 

DefineDomainProcessInclude:Find_Next_Floor

...

 

The DefineDomainProcessInclude statement introduces the statements that are to be included where the corresponding ProcessDomainInclude name is listed.

 

Domain based DefineDomainProcessInclude files that are to be shared between all entities in a domain are held in the following folder:

 

M:\Matrix\Models\Passenger_Elevator\Elevator_Management\01Process

 

 

DefineEntityProcessInclude Statement

 

DefineEntityProcessInclude:Car:Main_Traverse

...

 

The DefineEntityProcessInclude statement introduces the statements that are to be included where the corresponding ProcessEntityInclude name is listed.

 

Entity based DefineEntityProcessInclude files that belong to a single entity are held in the following folder:

 

M:\Matrix\Models\Passenger_Elevator\Elevator_Management\Car\02Process

 

 

Define Include Statement Example

 

The code fragment below shows the contents of the DefineDomainInclude for the Car entity in the Passenger Elevator model. The DefineDomainInclude must be the first statement and names both the include code fragment and the include file.

 

DefineDomainInclude:Car

Entity:Car

Attribute

Direction : Direction

Relationship

Services                  ->> Car_Service

Currently_at              --> Floor

Accessed_through          --> Door

Scheduled_to_move_up_to   |>> Floor

Scheduled_to_move_down_to |>> Floor

State

Dataset:Travel

Floor : Next_floor_number

StateInclude

Stationary

Selecting_Schedule

Servicing_Schedule

Moving

Checking_Schedule

Slowing

Opening

Accessible

Closing

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