Examples of receiveToken()


Examples of org.woped.core.model.petrinet.PlaceModel.receiveToken()

     */
    private void receiveTokens(ArcModel arc) {
        try {
            PlaceModel place = (PlaceModel) getPetriNet().getElementContainer().getElementById(arc.getTargetId());
            if (place != null) {
                place.receiveToken();
                // TODO: when ARC WEIGTH implemented receive tokens weigth times
            }
        } catch (ClassCastException cce) {
            LoggerManager.warn(Constants.QUALANALYSIS_LOGGER,
                    "TokenGame: Cannot receive token. Target is not a place. Ignore arc: " + arc.getId());
View Full Code Here

Examples of org.woped.core.model.petrinet.PlaceModel.receiveToken()

     */
    private void receiveBackwardTokens(ArcModel arc) {
        try {
            PlaceModel place = (PlaceModel) getPetriNet().getElementContainer().getElementById(arc.getSourceId());
            if (place != null) {
                place.receiveToken();
                // TODO: when ARC WEIGTH implemented receive tokens weigth times
            }
        } catch (ClassCastException cce) {
            LoggerManager.warn(Constants.QUALANALYSIS_LOGGER,
                    "TokenGame: Cannot receive token. Target is not a place. Ignore arc: " + arc.getId());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.