123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241 |
- .//============================================================================
- .// File: domain.mark
- .//
- .// Description:
- .// This marking file is used to indicate xtUML domain specialization(s)
- .// to the model compiler's translation engine.
- .//
- .// Notice:
- .// (C) Copyright 1999-2013 Mentor Graphics Corporation
- .// All rights reserved.
- .//============================================================================
- .// Notes:
- .// (1) Marking is specified via archetype function invocation(s) in this file.
- .// A function invocation statement MUST be specified on a single line.
- .// All indicated function input parameters must be supplied.
- .// (2) All quoted string parameters are case sensitive.
- .// (3) Comments in this file start with ".//".
- .// (4) Do not leave any blank lines in this file.
- .//============================================================================
- .//
- .//
- .//============================================================================
- .// Mark Initialization Function:
- .//
- .// To indicate to the model compiler that a function serves as an
- .// initialization function in a domain, use the following invocation
- .// (one for each initialization object):
- .//
- .// MarkInitializationFunction( "component", "function_name" )
- .//
- .// Where the input parameter(s) are:
- .// component = name of component (domain) containing initialization function
- .// function_name = name of the domain function (synchronous service)
- .//
- .// Example:
- .// .invoke MarkInitializationFunction( "*", "setup" )
- .// .invoke MarkInitializationFunction( "SeatHeater", "test" )
- .//
- .// Notes:
- .// (1) If multiple functions are tagged, they will be invoked in
- .// alphabetical order.
- .// (2) Function bearing arguments may not be used as initialization
- .// functions.
- .// (3) This interface supersedes and obsoletes tagging initialization
- .// objects.
- .//============================================================================
- .//
- .//
- .//============================================================================
- .// Exclude Function(s) From Implementation Code Generation:
- .//
- .// To indicate to the model compiler that a function should be excluded
- .// from implementation code generation, use the following invocation
- .// (one for each excluded object):
- .//
- .// MarkFunctionTranslationOff( "component", "function_name" )
- .//
- .// Where the input parameter(s) are:
- .// component = name of component (domain) containing function
- .// function_name = name of domain function to not be translated
- .//
- .// Example:
- .// .invoke MarkFunctionTranslationOff( "component", "initialize_AS" )
- .// .invoke MarkFunctionTranslationOff( "*" )
- .//============================================================================
- .//
- .//
- .//============================================================================
- .// Exclude Object From Implementation Code Generation:
- .//
- .// To indicate to the model compiler that an object should be excluded
- .// from implementation code generation, use the following invocation
- .// (one for each excluded object):
- .//
- .// MarkExcludeObjectFromCodeGen( "component", "key_letters" )
- .//
- .// Where the input parameter(s) are:
- .// component = name of component (domain) being marked
- .// key_letters = Key letters of the object to be excluded.
- .//
- .// Example:
- .// .invoke MarkExcludeObjectFromCodeGen( "TST_OBJ" )
- .//============================================================================
- .//
- .//
- .//============================================================================
- .// Exclude Subsystem From Code Generation:
- .//
- .// To indicate to the model compiler that all objects in a specified
- .// subsystem should be excluded from implementation code generation, use the
- .// following invocation (one for each excluded subsystem):
- .//
- .// MarkExcludeSubsystemFromCodeGen( "component", "subsystem" )
- .//
- .// Where the input parameter(s) are:
- .// component = name of component (domain) being marked
- .// subsystem = Name of the subsystem to be excluded.
- .//
- .// NOTES: 1) 'white space' in the subsystem name will be ignored.
- .// 2) The subsystem name is not case sensitive.
- .//
- .// Example:
- .// .invoke MarkExcludeSubsystemFromCodeGen( "ModelVerifier Unit Tests" )
- .//============================================================================
- .//
- .//
- .//============================================================================
- .// *** Debug Control Marks ***
- .//============================================================================
- .//
- .//
- .//============================================================================
- .// Debug Tooling: Enable state transition level tracing.
- .//
- .// To indicate to the model compiler that state transition tracing
- .// capabilities should be generated, use the following invocation:
- .//
- .// MarkStateTransitionTracingOn( "component" )
- .//
- .// Where the input parameter(s) are:
- .// component = name of component (domain) being marked
- .//
- .// Example:
- .// .invoke MarkStateTransitionTracingOn( "component" )
- .//============================================================================
- .invoke MarkStateTransitionTracingOn( "*" )
- .//
- .//
- .//============================================================================
- .// Debug Tooling: Enable state action language level tracing.
- .//
- .// To indicate to the model compiler that state action statement tracing
- .// capabilities should be generated, use the following invocation:
- .//
- .// MarkActionStatementTracingOn( "component" )
- .//
- .// Where the input parameter(s) are:
- .// component = name of component (domain) being marked
- .//
- .// Example:
- .// .invoke MarkActionStatementTracingOn( "Tracking" )
- .//============================================================================
- .invoke MarkActionStatementTracingOn( "*" )
- .//
- .//
- .//============================================================================
- .// Debug Tooling: Enable interface message tracing.
- .//
- .// To turn on the tracing of messages passing between components, use
- .// the following invocation:
- .//
- .// MarkMessageTracingOn( "component", "port", "message" )
- .//
- .// Where the input parameter(s) are:
- .// component = name of component being marked
- .// port = name of specific port on the component being marked
- .// message = name of one message
- .//
- .// Example:
- .// .invoke MarkMessageTracingOn( "Tracking", "HR", "heartRateChanged" )
- .// .invoke MarkMessageTracingOn( "Tracking", "*", "*" )
- .//============================================================================
- .// .invoke MarkMessageTracingOn( "*", "*", "*" )
- .//
- .//
- .//============================================================================
- .// Debug Tooling: Enable detection of empty instance handle usage.
- .//
- .// To steer the model compiler into generating code that detects the
- .// use of empty instance references and instance set references (handles),
- .// use the following invocation:
- .//
- .// MarkEmptyHandleDetectionOn( "component" )
- .//
- .// Where the input parameter(s) are:
- .// component = name of component (domain) being marked
- .//
- .// Example:
- .// .invoke MarkEmptyHandleDetectionOn()
- .//============================================================================
- .invoke MarkEmptyHandleDetectionOn( "*" )
- .//
- .//
- .//============================================================================
- .// Debug Tooling: Disable first pass optimizations in generated code.
- .//
- .// To indicate to the model compiler first pass optimizations in the generated
- .// code should be disabled, use the following invocation:
- .//
- .// MarkFirstPassOptimizationsOff( "component" )
- .//
- .// Where the input parameter(s) are:
- .// component = name of component (domain) being marked
- .//
- .// Example:
- .// .invoke MarkFirstPassOptimizationsOff( "ship" )
- .//============================================================================
- .//
- .//
- .//============================================================================
- .// *** Generated Code Commenting and Naming Control Marks ***
- .//
- .// The following marks provide control of action language commenting and
- .// variable naming in the generated code. They are intended to allow style
- .// choices primarily for those modifying or learning about the model compiler.
- .//============================================================================
- .//
- .//
- .//============================================================================
- .// This mark will render the original BPAL state actions as a comment block
- .// prior to the generate code for each state action. By default, block level
- .// comments of the BPAL are not generated.
- .//
- .// MarkStateActionCommentBlocksEnabled( "component )
- .//
- .// Where the input parameter(s) are:
- .// component = name of component (domain) being marked
- .//
- .// Example:
- .// .invoke MarkStateActionCommentBlocksEnabled( "*" )
- .//============================================================================
- .//
- .//
- .//============================================================================
- .// This mark will disable the emission of BPAL syntax statements immediately
- .// before the corresponding generated code segment. By default, statement
- .// level comments of the BPAL are generated.
- .//
- .// MarkStateActionStatementCommentsDisabled( "component )
- .//
- .// Where the input parameter(s) are:
- .// component = name of component (domain) being marked
- .//
- .// Example:
- .// .invoke MarkStateActionStatementCommentsDisabled( "SeatHeater" )
- .//============================================================================
- .//
- .//============================================================================
- .// Do not add anything at the end of this file!
- .//============================================================================
|