-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
244 additions
and
164 deletions.
There are no files selected for viewing
34 changes: 34 additions & 0 deletions
34
fmi-md/src/main/java/no/ntnu/ihb/fmi4j/modeldescription/fmi1/FmiCausality.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
package no.ntnu.ihb.fmi4j.modeldescription.fmi1; | ||
|
||
/** | ||
* Defines how the variable is visible from the outside of the model. This information is | ||
* needed when the FMU is connected to other FMUs. | ||
*/ | ||
public enum FmiCausality { | ||
|
||
/** | ||
* A value can be provided from the outside. Initially, the value is set to its | ||
* "start" value (see below). | ||
*/ | ||
input, | ||
|
||
/** | ||
* A value can be utilized in a connection | ||
*/ | ||
output, | ||
|
||
/** | ||
* After initialization only allowed to get value, e.g., to store the value as | ||
* result. It is not allowed to use this value in a connection. Before initialization, start | ||
* values can be set. | ||
*/ | ||
internal, | ||
|
||
/** | ||
* The variable does not influence the model equations. It is a tool specific | ||
* variable to, e.g., switch certain logging or storage features on or off. Variables with | ||
* this causality setting can be set with the fmiSetXXX functions at any time | ||
*/ | ||
none; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
fmi-md/src/main/java/no/ntnu/ihb/fmi4j/modeldescription/fmi1/FmiVariability.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
package no.ntnu.ihb.fmi4j.modeldescription.fmi1; | ||
|
||
/** | ||
* Defines when the value of the variable changes. The purpose of this attribute is to define | ||
* when a result value needs to be inquired and to be stored (e.g., discrete variables | ||
* change their values only at events instants and it is therefore only necessary to store | ||
* them at event times). | ||
*/ | ||
public enum FmiVariability { | ||
|
||
/** | ||
* The value of the variable is fixed and does not change. | ||
*/ | ||
constant, | ||
|
||
/** | ||
* The value of the variable does not change after initialization (the value | ||
* is fixed after fmiInitialize was called). | ||
*/ | ||
parameter, | ||
|
||
/** | ||
* The value of the variable only changes during initialization and at event | ||
* instants. | ||
*/ | ||
discrete, | ||
|
||
/** | ||
* No restrictions on value changes. Only a variable of type = "Real" can | ||
* be "continuous". | ||
*/ | ||
continuous; | ||
|
||
} |
Oops, something went wrong.