Examples of SRCPLocomotive


Examples of de.dermoba.srcp.model.locomotives.SRCPLocomotive

            instance = new SRCPLocomotiveControlAdapter();
        return instance;
    }

    public void decreaseSpeed(Locomotive locomotive) throws LocomotiveException {
        SRCPLocomotive sLocomotive = locomotiveSRCPLocomotiveMap
                .get(locomotive);
        try {
            locomotiveControl.decreaseSpeed(sLocomotive);
        } catch (SRCPModelException e) {
            throw new LocomotiveException("Locomotive Error", e);
View Full Code Here

Examples of de.dermoba.srcp.model.locomotives.SRCPLocomotive

    }

    public void decreaseSpeedStep(Locomotive locomotive)
            throws LocomotiveException {
        SRCPLocomotive sLocomotive = locomotiveSRCPLocomotiveMap
                .get(locomotive);
        try {
            locomotiveControl.decreaseSpeedStep(sLocomotive);
        } catch (SRCPModelException e) {
            throw new LocomotiveException("Locomotive Error", e);
View Full Code Here

Examples of de.dermoba.srcp.model.locomotives.SRCPLocomotive

        }

    }

    public int getCurrentSpeed(Locomotive locomotive) {
        SRCPLocomotive sLocomotive = locomotiveSRCPLocomotiveMap
                .get(locomotive);
        return sLocomotive.getCurrentSpeed();
    }
View Full Code Here

Examples of de.dermoba.srcp.model.locomotives.SRCPLocomotive

                .get(locomotive);
        return sLocomotive.getCurrentSpeed();
    }

    public SRCPLocomotiveDirection getDirection(Locomotive locomotive) {
        SRCPLocomotive sLocomotive = locomotiveSRCPLocomotiveMap
                .get(locomotive);
        return sLocomotive.getDirection();
    }
View Full Code Here

Examples of de.dermoba.srcp.model.locomotives.SRCPLocomotive

                .get(locomotive);
        return sLocomotive.getDirection();
    }

    public boolean[] getFunctions(Locomotive locomotive) {
        SRCPLocomotive sLocomotive = locomotiveSRCPLocomotiveMap
                .get(locomotive);
        return sLocomotive.getFunctions();
    }
View Full Code Here

Examples of de.dermoba.srcp.model.locomotives.SRCPLocomotive

                .get(locomotive);
        return sLocomotive.getFunctions();
    }

    public void increaseSpeed(Locomotive locomotive) throws LocomotiveException {
        SRCPLocomotive sLocomotive = locomotiveSRCPLocomotiveMap
                .get(locomotive);
        try {
            locomotiveControl.increaseSpeed(sLocomotive);
        } catch (SRCPModelException e) {
            throw new LocomotiveException("Locomotive Error", e);
View Full Code Here

Examples of de.dermoba.srcp.model.locomotives.SRCPLocomotive

        }
    }

    public void increaseSpeedStep(Locomotive locomotive)
            throws LocomotiveException {
        SRCPLocomotive sLocomotive = locomotiveSRCPLocomotiveMap
                .get(locomotive);
        try {
            locomotiveControl.increaseSpeedStep(sLocomotive);
        } catch (SRCPModelException e) {
            throw new LocomotiveException("Locomotive Error", e);
View Full Code Here

Examples of de.dermoba.srcp.model.locomotives.SRCPLocomotive

        }
    }

    public void setFunctions(Locomotive locomotive, boolean[] functions)
            throws LocomotiveException {
        SRCPLocomotive sLocomotive = locomotiveSRCPLocomotiveMap
                .get(locomotive);
        try {
            locomotiveControl.setFunctions(sLocomotive, functions);
        } catch (SRCPModelException e) {
            throw new LocomotiveException("Locomotive Error", e);
View Full Code Here

Examples of de.dermoba.srcp.model.locomotives.SRCPLocomotive

    }

    public void setSpeed(Locomotive locomotive, int speed, boolean[] functions)
            throws LocomotiveException {
        SRCPLocomotive sLocomotive = locomotiveSRCPLocomotiveMap
                .get(locomotive);
        try {
            locomotiveControl.setSpeed(sLocomotive, speed, functions);
        } catch (SRCPModelException e) {
            throw new LocomotiveException("Locomotive Error", e);
View Full Code Here

Examples of de.dermoba.srcp.model.locomotives.SRCPLocomotive

        }
    }

    public void toggleDirection(Locomotive locomotive)
            throws LocomotiveException {
        SRCPLocomotive sLocomotive = locomotiveSRCPLocomotiveMap
                .get(locomotive);
        try {
            locomotiveControl.toggleDirection(sLocomotive);
        } catch (SRCPModelException e) {
            throw new LocomotiveException("Locomotive Error", e);
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.