break;
}
}
// add current transition node
TransitionNode tNode;
if (opTrans != null && opTrans.getType() == TransitionModel.TRANS_OPERATOR_TYPE) {
tNode = lNet.getTransitionNode(new TransitionNode(tm.getId(), tm.getNameValue(),
makeOriginId(tm.getId()), ((OperatorTransitionModel)opTrans).getOperatorType()));
}
else {
tNode = lNet.getTransitionNode(new TransitionNode(tm.getId(), tm.getNameValue(),
makeOriginId(tm.getId()), OperatorTransitionModel.TRANS_SIMPLE_TYPE));
}
// add predecessor of current transition node
for (AbstractPetriNetElementModel predecessor : predecessors) {
lNet.getPlaceNode(
new PlaceNode(((PlaceModel) predecessor).getTokenCount(), ((PlaceModel) predecessor)
.getVirtualTokenCount(), predecessor.getId(), predecessor.getNameValue(),
makeOriginId(predecessor.getId()))).addPostNode(tNode);
}
// add successor of current transition node
for (AbstractPetriNetElementModel successor : successors) {
tNode.addPostNode(lNet.getPlaceNode(new PlaceNode(((PlaceModel) successor).getTokenCount(),
((PlaceModel) successor).getVirtualTokenCount(), successor.getId(), successor.getNameValue(),
makeOriginId(successor.getId()))));
}
}