Modelica_StateGraph2.Blocks.Interfaces

Public interface definitions (shall be included in Modelica Standard Library)

Package Content

NameDescription
Modelica_StateGraph2.Blocks.Interfaces.BooleanVectorInput BooleanVectorInput Vector of Boolean inputs
Modelica_StateGraph2.Blocks.Interfaces.IntegerVectorInput IntegerVectorInput Vector of Integer inputs
Modelica_StateGraph2.Blocks.Interfaces.RealVectorInput RealVectorInput Vector of Real inputs
Modelica_StateGraph2.Blocks.Interfaces.PartialBooleanSISO PartialBooleanSISO Partial block with a BooleanInput and a BooleanOutput signal
Modelica_StateGraph2.Blocks.Interfaces.PartialIntegerSISO PartialIntegerSISO Partial block with a IntegerInput and an IntegerOutput signal
Modelica_StateGraph2.Blocks.Interfaces.PartialRealSISO PartialRealSISO Partial block with a RealInput and an RealOutput signal
Modelica_StateGraph2.Blocks.Interfaces.PartialBooleanMISO PartialBooleanMISO Partial block with a BooleanVectorInput and a BooleanOutput signal
Modelica_StateGraph2.Blocks.Interfaces.PartialIntegerMISO PartialIntegerMISO Partial block with an IntegerVectorInput and an IntegerOutput signal
Modelica_StateGraph2.Blocks.Interfaces.PartialRealMISO PartialRealMISO Partial block with a RealVectorInput and a RealOutput signal
Modelica_StateGraph2.Blocks.Interfaces.PartialTriggeredSet PartialTriggeredSet Partial block to evaluate expression that is associated with the first input trigger signal (optionally with guard)
Modelica_StateGraph2.Blocks.Interfaces.ActiveSetIntegerRecord ActiveSetIntegerRecord Record to define a "active, integer" pair, to associate an integer with an active flag


Modelica_StateGraph2.Blocks.Interfaces.BooleanVectorInput Modelica_StateGraph2.Blocks.Interfaces.BooleanVectorInput

Vector of Boolean inputs

Modelica_StateGraph2.Blocks.Interfaces.BooleanVectorInput

Information


Connector with one input signal of type Boolean.

Extends from Boolean.

Modelica definition

connector BooleanVectorInput =
                         input Boolean "Vector of Boolean inputs";

Modelica_StateGraph2.Blocks.Interfaces.IntegerVectorInput Modelica_StateGraph2.Blocks.Interfaces.IntegerVectorInput

Vector of Integer inputs

Modelica_StateGraph2.Blocks.Interfaces.IntegerVectorInput

Information


Connector with one input signal of type Boolean.

Extends from Integer.

Modelica definition

connector IntegerVectorInput =
                         input Integer "Vector of Integer inputs";

Modelica_StateGraph2.Blocks.Interfaces.RealVectorInput Modelica_StateGraph2.Blocks.Interfaces.RealVectorInput

Vector of Real inputs

Modelica_StateGraph2.Blocks.Interfaces.RealVectorInput

Information


Connector with one input signal of type Boolean.

Extends from Real.

Modelica definition

connector RealVectorInput =
                         input Real "Vector of Real inputs";

Modelica_StateGraph2.Blocks.Interfaces.PartialBooleanSISO Modelica_StateGraph2.Blocks.Interfaces.PartialBooleanSISO

Partial block with a BooleanInput and a BooleanOutput signal

Modelica_StateGraph2.Blocks.Interfaces.PartialBooleanSISO

Connectors

TypeNameDescription
output BooleanOutputy 
input BooleanInputu 

Modelica definition

partial block PartialBooleanSISO 
  "Partial block with a BooleanInput and a BooleanOutput signal"

  Modelica.Blocks.Interfaces.BooleanOutput y;
  Modelica.Blocks.Interfaces.BooleanInput u;
end PartialBooleanSISO;

Modelica_StateGraph2.Blocks.Interfaces.PartialIntegerSISO Modelica_StateGraph2.Blocks.Interfaces.PartialIntegerSISO

Partial block with a IntegerInput and an IntegerOutput signal

Modelica_StateGraph2.Blocks.Interfaces.PartialIntegerSISO

Connectors

TypeNameDescription
output IntegerOutputy 
input IntegerInputu 

Modelica definition

partial block PartialIntegerSISO 
  "Partial block with a IntegerInput and an IntegerOutput signal"

  Modelica.Blocks.Interfaces.IntegerOutput y;
  Modelica.Blocks.Interfaces.IntegerInput u;
end PartialIntegerSISO;

Modelica_StateGraph2.Blocks.Interfaces.PartialRealSISO Modelica_StateGraph2.Blocks.Interfaces.PartialRealSISO

Partial block with a RealInput and an RealOutput signal

Modelica_StateGraph2.Blocks.Interfaces.PartialRealSISO

Connectors

TypeNameDescription
output RealOutputy 
input RealInputu 

Modelica definition

partial block PartialRealSISO 
  "Partial block with a RealInput and an RealOutput signal"

  Modelica.Blocks.Interfaces.RealOutput y;
  Modelica.Blocks.Interfaces.RealInput u;
end PartialRealSISO;

Modelica_StateGraph2.Blocks.Interfaces.PartialBooleanMISO Modelica_StateGraph2.Blocks.Interfaces.PartialBooleanMISO

Partial block with a BooleanVectorInput and a BooleanOutput signal

Modelica_StateGraph2.Blocks.Interfaces.PartialBooleanMISO

Connectors

TypeNameDescription
input BooleanVectorInputu[nu] 
output BooleanOutputy 

Modelica definition

partial block PartialBooleanMISO 
  "Partial block with a BooleanVectorInput and a BooleanOutput signal"

  parameter Integer nu(min=0)=0 "Number of input connections";
  Modelica_StateGraph2.Blocks.Interfaces.BooleanVectorInput u[nu];
  Modelica.Blocks.Interfaces.BooleanOutput y;
initial equation 
  pre(u) = fill(false,nu);
end PartialBooleanMISO;

Modelica_StateGraph2.Blocks.Interfaces.PartialIntegerMISO Modelica_StateGraph2.Blocks.Interfaces.PartialIntegerMISO

Partial block with an IntegerVectorInput and an IntegerOutput signal

Modelica_StateGraph2.Blocks.Interfaces.PartialIntegerMISO

Connectors

TypeNameDescription
input IntegerVectorInputu[nu] 
output IntegerOutputy 

Modelica definition

partial block PartialIntegerMISO 
  "Partial block with an IntegerVectorInput and an IntegerOutput signal"

  parameter Integer nu(min=0)=0 "Number of input connections";
  Modelica_StateGraph2.Blocks.Interfaces.IntegerVectorInput u[nu];
  Modelica.Blocks.Interfaces.IntegerOutput y;
end PartialIntegerMISO;

Modelica_StateGraph2.Blocks.Interfaces.PartialRealMISO Modelica_StateGraph2.Blocks.Interfaces.PartialRealMISO

Partial block with a RealVectorInput and a RealOutput signal

Modelica_StateGraph2.Blocks.Interfaces.PartialRealMISO

Parameters

TypeNameDefaultDescription
Advanced
Integerprecision3Number of significant digits to be shown in dynamic diagram layer for y

Connectors

TypeNameDescription
input RealVectorInputu[nu] 
output RealOutputy 

Modelica definition

partial block PartialRealMISO 
  "Partial block with a RealVectorInput and a RealOutput signal"

  parameter Integer precision(min=0) = 3 
    "Number of significant digits to be shown in dynamic diagram layer for y";
  parameter Integer nu(min=0)=0 "Number of input connections";
  Modelica_StateGraph2.Blocks.Interfaces.RealVectorInput u[nu];
  Modelica.Blocks.Interfaces.RealOutput y;
end PartialRealMISO;

Modelica_StateGraph2.Blocks.Interfaces.PartialTriggeredSet Modelica_StateGraph2.Blocks.Interfaces.PartialTriggeredSet

Partial block to evaluate expression that is associated with the first input trigger signal (optionally with guard)

Information



Parameters

TypeNameDefaultDescription
Select exactly one check box
Booleanrisingtrue=true, if rising input triggers evaluation
Booleanchangingfalse=true, if changing input triggers evaluation
Booleanfallingfalse=true, if falling input triggers evaluation
Booleanactivefalse=true, if active input at sample times triggers evaluation
Other options
Booleanuse_guardfalse= true, if guard enabled
Booleanguardtruey not changing, if guard=false (time varying)
TimesamplePeriod0Sample period if active=true (only temporarily) [s]

Modelica definition

partial block PartialTriggeredSet 
  "Partial block to evaluate expression that is associated with the first input trigger signal (optionally with guard)"

  parameter Boolean rising = true "=true, if rising input triggers evaluation";
  parameter Boolean changing = false 
    "=true, if changing input triggers evaluation";
  parameter Boolean falling = false 
    "=true, if falling input triggers evaluation";
  parameter Boolean active = false 
    "=true, if active input at sample times triggers evaluation";

  parameter Boolean use_guard = false "= true, if guard enabled";
  input Boolean guard=true "y not changing, if guard=false (time varying)";
  parameter Modelica.SIunits.Time samplePeriod=0 
    "Sample period if active=true (only temporarily)";

protected 
  Boolean sampled;
initial equation 
  pre(sampled)   = false;
equation 
   // Check that exactly only option is selected (radio buttons)
    assert(Modelica_StateGraph2.Blocks.BooleanFunctions.oneTrue({rising,
      changing,falling,active}),
      "Exactly one parameter of {rising, changing, falling, active} must be true");
end PartialTriggeredSet;

Modelica_StateGraph2.Blocks.Interfaces.ActiveSetIntegerRecord Modelica_StateGraph2.Blocks.Interfaces.ActiveSetIntegerRecord

Record to define a "active, integer" pair, to associate an integer with an active flag

Information

Extends from Modelica.Icons.Record (Icon for records).

Parameters

TypeNameDefaultDescription
BooleanactivefalseActive flag
Integerexpr0y = if active then expr else y_default (time varying)

Modelica definition

record ActiveSetIntegerRecord 
  "Record to define a \"active, integer\" pair, to associate an integer with an active flag"
  extends Modelica.Icons.Record;

  Boolean active=false "Active flag";
  Integer expr=0 "y = if active then expr else y_default (time varying)";
end ActiveSetIntegerRecord;

Automatically generated Fri Nov 12 17:27:07 2010.