Package ch.fork.AdHocRailway.domain.locking

Examples of ch.fork.AdHocRailway.domain.locking.LockingException


        SRCPLocomotive sLocomotive = locomotiveSRCPLocomotiveMap
                .get(locomotive);
        try {
            return locomotiveControl.acquireLock(sLocomotive);
        } catch (SRCPLockingException e) {
            throw new LockingException("Locomotive Locked", e);
        } catch (SRCPModelException e) {
            throw new LockingException("Locomotive Error", e);
        }
    }
View Full Code Here


            return false;
        }
        try {
            return locomotiveControl.isLocked(sLocomotive);
        } catch (SRCPLockingException e) {
            throw new LockingException("Locomotive Locked", e);
        } catch (SRCPModelException e) {
            throw new LockingException("Locomotive Error", e);
        }
    }
View Full Code Here

        }
        try {
            return locomotiveControl.isLockedByMe(sLocomotive);

        } catch (SRCPLockingException e) {
            throw new LockingException("Locomotive Locked", e);
        } catch (SRCPModelException e) {
            throw new LockingException("Locomotive Error", e);
        }
    }
View Full Code Here

        SRCPLocomotive sLocomotive = locomotiveSRCPLocomotiveMap
                .get(locomotive);
        try {
            return locomotiveControl.releaseLock(sLocomotive);
        } catch (SRCPLockingException e) {
            throw new LockingException("Locomotive Locked", e);
        } catch (SRCPModelException e) {
            throw new LockingException("Locomotive Error", e);
        }
    }
View Full Code Here

TOP

Related Classes of ch.fork.AdHocRailway.domain.locking.LockingException

Copyright © 2018 www.massapicom. 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.