Package fr.soleil.salsa.entity.event

Examples of fr.soleil.salsa.entity.event.ActuatorModel


        return timebaseListModel;
    }

    @Override
    public void addActuator(String actuatorName, boolean yActuator) {
        IActuator device = new ActuatorModel();
        device.setName(actuatorName);
        device.setEnabled(true);

        IDimension dimension = getDimensionX();
        if (yActuator && (this instanceof IConfig2D)) {
            dimension = ((IConfig2D) this).getDimensionY();
        }
View Full Code Here


     */
    public static List<Integer> diff(List<ActuatorModel> l1, List<IActuator> l2) {
        List<Integer> result = new ArrayList<Integer>();
        for (int i = 0; i < l1.size(); i++) {

            ActuatorModel a = l1.get(i);

            if (!myContains(l2, a)) {
                result.add(i);
            }
        }
View Full Code Here

                IConfig1D config1d = (IConfig1D) config;
                List<IActuator> actuators = config1d.getDimensionX().getActuatorsList();
                view.clearActuators();
                for (int i = 0; i < actuators.size(); i++) {
                    IActuator a = (IActuator) actuators.get(i);
                    ActuatorModel eActuator = (ActuatorModel) a;
                    eActuator.addListener(actuatorListener);
                    view.addActuator(a.getName(), a.getName());
                    if (i == postScanBehaviour.getActuator()) {
                        view.setActuatorSelected(i);
                    }
                }
View Full Code Here

     */
    public static List<Integer> diff(List<ActuatorModel> l1, List<IActuator> l2) {
        List<Integer> result = new ArrayList<Integer>();
        for (int i = 0; i < l1.size(); i++) {

            ActuatorModel a = l1.get(i);

            if (!myContains(l2, a)) {
                result.add(i);
            }
        }
View Full Code Here

        return timebaseListModel;
    }

    @Override
    public void addActuator(String actuatorName, boolean yActuator) {
        IActuator device = new ActuatorModel();
        device.setName(actuatorName);
        device.setEnabled(true);

        IDimension dimension = getDimensionX();
        if (yActuator && (this instanceof IConfig2D)) {
            dimension = ((IConfig2D) this).getDimensionY();
        }
View Full Code Here

     */
    public static List<Integer> diff(List<ActuatorModel> l1, List<IActuator> l2) {
        List<Integer> result = new ArrayList<Integer>();
        for (int i = 0; i < l1.size(); i++) {

            ActuatorModel a = l1.get(i);

            if (!myContains(l2, a)) {
                result.add(i);
            }
        }
View Full Code Here

     */
    public static List<Integer> diff(List<ActuatorModel> l1, List<IActuator> l2) {
        List<Integer> result = new ArrayList<Integer>();
        for (int i = 0; i < l1.size(); i++) {

            ActuatorModel a = l1.get(i);

            if (!myContains(l2, a)) {
                result.add(i);
            }
        }
View Full Code Here

     * Called when an actuator added.
     *
     * @param newList
     */
    public void actuatorAddedEvent(List<IActuator> newList) {
        ActuatorModel actuatorModel = (ActuatorModel) newList.get(newList.size() - 1);
        this.actuatorModelsList.add(actuatorModel);
        actuatorModel.addListener(listenerActuator);
        IDimension1D dimension = ((IConfig1D) config).getDimensionX();
        List<IRange1D> range1DList = dimension.getRangesXList();
        if (this.rangeModelsList.size() == 0) {
            this.notifyNewRangeAction();
        }
        for (int i = 0; i < this.rangeModelsList.size(); i++) {
            Range1DModel range = rangeModelsList.get(i);
            IRange1D range1D = range1DList.get(i);
            Trajectory1DModel trajectory1DModelToAdd = new Trajectory1DModel();
            trajectory1DModelToAdd.setBeginPosition(0.0);
            trajectory1DModelToAdd.setEndPosition(0.0);
            trajectory1DModelToAdd.setDelta(0.0);
            trajectory1DModelToAdd.setRelative(false);
            trajectory1DModelToAdd.setSpeed(0.0);
            trajectory1DModelToAdd.setRange(rangeModelsList.get(i));
            range.getTrajectoriesList().add(trajectory1DModelToAdd);
            range1D.getTrajectoriesList().add(trajectory1DModelToAdd);
            dimension.getTrajectoriesList().add(trajectory1DModelToAdd);
            trajectory1DModelToAdd.addListener(listenerTrajectory1D);
            trajectory1DModelToAdd.setActuator(actuatorModel);
        }
        this.notifyAddActuator(actuatorModel.getName(), true);
    }
View Full Code Here

        return timebaseListModel;
    }

    @Override
    public void addActuator(String actuatorName, boolean yActuator) {
        IActuator device = new ActuatorModel();
        device.setName(actuatorName);
        device.setEnabled(true);

        IDimension dimension = getDimensionX();
        if (yActuator && (this instanceof IConfig2D)) {
            dimension = ((IConfig2D) this).getDimensionY();
        }
View Full Code Here

        return timebaseListModel;
    }

    @Override
    public void addActuator(String actuatorName, boolean yActuator) {
        IActuator device = new ActuatorModel();
        device.setName(actuatorName);
        device.setEnabled(true);

        IDimension dimension = getDimensionX();
        if (yActuator && (this instanceof IConfig2D)) {
            dimension = ((IConfig2D) this).getDimensionY();
        }
View Full Code Here

TOP

Related Classes of fr.soleil.salsa.entity.event.ActuatorModel

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.