// Connect state feedback expressions.
for (int i = 0; i < n; i++) {
// One port for each state variable.
for (int k = 0; k < n; k++) {
TypedIOPort port = new TypedIOPort(equations[i], states[k],
true, false);
port.setTypeEquals(BaseType.DOUBLE);
port.link(stateRelations[k]);
}
// One port for each input variable.
for (int k = 0; k < m; k++) {
TypedIOPort port = new TypedIOPort(equations[i], inputs[k],
true, false);
port.setTypeEquals(BaseType.DOUBLE);
port.link(inputRelations[k]);
}
}
// Connect output expressions.
// The policy now is that the output should never directly
// depend on the input. The output Expression actors will no
// longer have input ports that represent the input of this
// composite actor.
for (int l = 0; l < r; l++) {
// One port for each state variable.
for (int k = 0; k < n; k++) {
TypedIOPort port = new TypedIOPort(maps[l], states[k],
true, false);
port.setTypeEquals(BaseType.DOUBLE);
port.link(stateRelations[k]);
}
/*
// One port for each input variable.