Refactor port actions
Current situation:
public CreatePortAction(final ConfigurationContext context, final InputPort<T> inputPort) {
this.context = context;
this.inputPort = inputPort;
}
// ...
private void onOutputPortCreated(final OutputPort<? extends T> newOutputPort) {
//context.addThreadableStage();
//context.connectPorts();
INTER_THREAD_PIPE_FACTORY.create(newOutputPort, inputPort);
DYNAMIC_ACTUATOR.startWithinNewThread(inputPort.getOwningStage());
newOutputPort.sendSignal(new InitializingSignal());
newOutputPort.sendSignal(new StartingSignal());
// FIXME pass the new thread to the analysis so that it can terminate the thread at the end
}
Goal:
- Remove constants INTER_THREAD_PIPE_FACTORY and DYNAMIC_ACTUATOR and, perhaps, use ``context`´ instead.
Problems to reach the goal:
- Methods of
context
are not accessible (package-private)