@Initialize
Within the @Initialize method the internal state of a component is initialized. For example opening a file for reading, or a creating a data base connection would be something that should be done within @Initialize.
FORTRAN modelers using OMS often will forego using this annotation because this step happens with the model simulation file containing DSL, and OMS initializes behind the scenes.
Synopsis
@Initialize
Type
Execution annotation
Scope
Method
Example
Java example:
public class Component {
@Initialize
public void start() {
// initialization code
}
}