simulink

Package edu.tum.cs.simulink.model

This package contains the implementation of the Simulink model.

See:
          Description

Class Summary
ParameterizedElement This class usually serves as base class for all classes that have a key-value-mechanism for parameters.
SimulinkAnnotation Class for Simulink annotations, which are basically comments in the Simulink model.
SimulinkBlock A Simulink block has a type and maintains a parameter map, a list of sub blocks, a list of annotations and in/out-ports.
SimulinkConstants This class contains constants used by the Simulink model builder.
SimulinkElementBase Base class for Simulink elements.
SimulinkInPort A Simulink inport.
SimulinkLine A Simulink line.
SimulinkModel A Simulink model a specialized Simulink block that primarily maintains the default parameters of blocks, annotations and lines.
SimulinkOutPort A Simulink inport.
SimulinkPortBase Base class for Simulink ports.
 

Package edu.tum.cs.simulink.model Description

This package contains the implementation of the Simulink model.

Model Overview

Parameter Mechanisms

Annotations

Simulink has a two-level mechanism for the definition of parameters at annotations:
  1. A parameter can be specified directly for an annotation.
  2. Additionally the model maintains a list of default parameters for all annotations. These parameters can be accessed by SimulinkModel.getAnnotationDefaultParameter(String).

Lines

Simulink has a two-level mechanism for the definition of parameters at lines:
  1. A parameter can be specified directly for a line.
  2. Additionally the model maintains a list of default parameters for all lines. These parameters can be accessed by SimulinkModel.getLineDefaultParameter(String).

Blocks

Simulink has a three-level mechanism for the definition of parameters at blocks:
  1. A parameter can be specified directly for a block. These parameters can be accessed by ParameterizedElement.getParameter(String).
  2. For each block type a Simulink model maintains a list of default parameters. These parameters can be accessed by SimulinkModel.getTypeBlockDefaultParameter(String, String).
  3. Additionally the model maintains a list of default parameters for all blocks. These parameters can be accessed by SimulinkModel.getBlockDefaultParameterNames(String).
When calling ParameterizedElement.getParameter(String) this options are automatically resolved in the reversed order, i.e. it is first checked if the block itself defines the parameter. If not, the default parameter for the block type is looked up. If this is undefined, too, the block default is returned (if there is one).


simulink

simulink - 2.7