Package org.ptolemy.fmi
Enum FMIScalarVariable.Causality
- java.lang.Object
-
- java.lang.Enum<FMIScalarVariable.Causality>
-
- org.ptolemy.fmi.FMIScalarVariable.Causality
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<FMIScalarVariable.Causality>
- Enclosing class:
- FMIScalarVariable
public static enum FMIScalarVariable.Causality extends java.lang.Enum<FMIScalarVariable.Causality>
Acceptable values for the causality xml attribute. Causality defines the visibility of the variable from outside of the model.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description calculatedParameter
New in FMI-2.0rc1.independent
New in FMI-2.0.input
The value is defined from the outside.internal
After initialization, a result may be stored.local
New in FMI-2.0rc1.none
The value does not affect computation.output
The value can be read from the outside with a connection.parameter
New in FMI-2.0rc1.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static FMIScalarVariable.Causality
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static FMIScalarVariable.Causality[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
calculatedParameter
public static final FMIScalarVariable.Causality calculatedParameter
New in FMI-2.0rc1.
-
input
public static final FMIScalarVariable.Causality input
The value is defined from the outside. The value is initially the value of the start attribute.
-
independent
public static final FMIScalarVariable.Causality independent
New in FMI-2.0.
-
internal
public static final FMIScalarVariable.Causality internal
After initialization, a result may be stored. However, the value cannot be used in a connection. The default Causality is "internal".
-
local
public static final FMIScalarVariable.Causality local
New in FMI-2.0rc1.
-
output
public static final FMIScalarVariable.Causality output
The value can be read from the outside with a connection.
-
parameter
public static final FMIScalarVariable.Causality parameter
New in FMI-2.0rc1.
-
none
public static final FMIScalarVariable.Causality none
The value does not affect computation. Typically, "none" values are tool specific and used to enable logging.
-
-
Method Detail
-
values
public static FMIScalarVariable.Causality[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (FMIScalarVariable.Causality c : FMIScalarVariable.Causality.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static FMIScalarVariable.Causality valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-