[svn r300] fixed counting ofd ports
This commit is contained in:
parent
0e4aa65062
commit
deb76203c6
|
@ -98,18 +98,20 @@ public class EventExecutorImpl implements EventExecutor {
|
|||
ready = false;
|
||||
try {
|
||||
FoeiProcess foeiProcess = FoeiProcessFactory.getFoeiProcess();
|
||||
eventPort.addEventsPassed();
|
||||
if(eventPort.getEventPortType()==EventPortType.input) {
|
||||
EventInput eventInput = (EventInput)eventPort.getEventObject();
|
||||
eventPort.addEventsPassed(); // inc input port
|
||||
eventInput.doEvent(eventPort,eventObject);
|
||||
return;
|
||||
}
|
||||
if(eventPort.getEventPortType()==EventPortType.output) {
|
||||
eventPort.addEventsPassed(); // inc output port
|
||||
List<EventPort> bindings = foeiProcess.getBindings(eventPort);
|
||||
for(EventPort port:bindings) {
|
||||
EventInput eventInput = (EventInput)port.getEventObject();
|
||||
if(port.isImmediate()) {
|
||||
logger.finer("Executing event of: "+port.getEventObject()+" port:"+port.getName()+" object: "+eventObject);
|
||||
port.addEventsPassed(); // inc Immediate import port
|
||||
eventInput.doEvent(port,eventObject);
|
||||
} else {
|
||||
logger.finest("Adding event to event queue");
|
||||
|
|
Loading…
Reference in a new issue