Examples of SRCPAddress


Examples of de.dermoba.srcp.model.SRCPAddress

            gl.setBus(locomotive.getBus());
            gl.setAddress(locomotive.getAddress());
            locomotive.setGL(gl);
            lockControl.registerControlObject(
                    "GL",
                    new SRCPAddress(locomotive.getBus(), locomotive
                            .getAddress()), locomotive);
        }
        if (!locomotive.isInitialized()) {
            initLocomotive(locomotive);
        }
View Full Code Here

Examples of de.dermoba.srcp.model.SRCPAddress

        checkLocomotive(locomotive);

        try {
            return lockControl.acquireLock(
                    "GL",
                    new SRCPAddress(locomotive.getBus(), locomotive
                            .getAddress()));
        } catch (SRCPDeviceLockedException e) {
            throw new SRCPLocomotiveLockedException(Constants.ERR_LOCKED, e);
        }
    }
View Full Code Here

Examples of de.dermoba.srcp.model.SRCPAddress

        checkLocomotive(locomotive);
        try {
            return lockControl.releaseLock(
                    "GL",
                    new SRCPAddress(locomotive.getBus(), locomotive
                            .getAddress()));
        } catch (SRCPDeviceLockedException e) {
            throw new SRCPLocomotiveLockedException(Constants.ERR_LOCKED, e);
        }
    }
View Full Code Here

Examples of de.dermoba.srcp.model.SRCPAddress

    public boolean isLocked(SRCPLocomotive locomotive)
            throws SRCPModelException {
        checkLocomotive(locomotive);

        return lockControl.isLocked("GL", new SRCPAddress(locomotive.getBus(),
                locomotive.getAddress()));
    }
View Full Code Here

Examples of de.dermoba.srcp.model.SRCPAddress

    public boolean isLockedByMe(SRCPLocomotive locomotive)
            throws SRCPModelException {
        checkLocomotive(locomotive);

        int sessionID = lockControl.getLockingSessionID("GL", new SRCPAddress(
                locomotive.getBus(), locomotive.getAddress()));
        if (sessionID == session.getCommandChannelID()) {
            return true;
        } else {
            return false;
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.