Examples of IActuator


Examples of fr.soleil.salsa.entity.IActuator

            int rangeIndex = 1;
            String rangeInfo = null;
            String actuatorInfo = null;
            String trajectoryInfo = "trajectory/";
            ITrajectory trajectory = null;
            IActuator actuator = null;

            for (IDimension dimension : dimensionList) {
                // Get the actuator List
                actuatorList = dimension.getActuatorsList();
                // System.out.println("actuatorList=" + actuatorList);
                if ((actuatorList != null) && !actuatorList.isEmpty()) {
                    rangeList = dimension.getRangeList();
                    // System.out.println("actuatorList=" +
                    // actuatorList.size());
                    // System.out.println("rangeList=" + rangeList);
                    if ((rangeList != null) && !rangeList.isEmpty()) {
                        for (int i = 0; i < actuatorList.size(); i++) {
                            rangeIndex = 1;
                            for (IRange range : rangeList) {
                                rangeInfo = "";
                                trajectoryList = range.getTrajectoriesList();
                                if ((trajectoryList != null) && !trajectoryList.isEmpty()
                                        && (actuatorList.size() <= trajectoryList.size())) {
                                    actuator = actuatorList.get(i);
                                    if (actuator.isEnabled()) {
                                        actuatorInfo = trajectoryInfo + "actuator_" + dimensionIndex + "_" + (i + 1)
                                        + "/";

                                        // Display actuator name only for the
                                        // first range
                                        if (rangeIndex == 1) {
                                            scanInfoList.add(actuatorInfo + "name:" + actuator.getName());
                                        }
                                        // System.out.println("trajectoryList="
                                        // +
                                        // trajectoryList.size());
                                        if (rangeList.size() > 1) {
View Full Code Here

Examples of fr.soleil.salsa.entity.IActuator

     * Set the actuator.
     *
     * @param actuator
     */
    public void setActuator(IActuator actuator) {
        IActuator oldValue = baseBean.getActuator();
        baseBean.setActuator(actuator);
        this.firePropertyChange("actuator", oldValue, actuator);
    }
View Full Code Here

Examples of fr.soleil.salsa.entity.IActuator

    @Override
    public void addActuator(String actuatorName, boolean yActuator) {
        List<IActuator> actuatorList = getActuatorList();
        if (getDevice(actuatorName, actuatorList) == null) {
            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

Examples of fr.soleil.salsa.entity.IActuator

            int rangeIndex = 1;
            String rangeInfo = null;
            String actuatorInfo = null;
            String trajectoryInfo = "trajectory/";
            ITrajectory trajectory = null;
            IActuator actuator = null;

            for (IDimension dimension : dimensionList) {
                // Get the actuator List
                actuatorList = dimension.getActuatorsList();
                if ((actuatorList != null) && !actuatorList.isEmpty()) {
                    rangeList = dimension.getRangeList();
                    if ((rangeList != null) && !rangeList.isEmpty()) {
                        for (int i = 0; i < actuatorList.size(); i++) {
                            rangeIndex = 1;
                            for (IRange range : rangeList) {
                                rangeInfo = "";
                                trajectoryList = range.getTrajectoriesList();
                                if ((trajectoryList != null) && !trajectoryList.isEmpty()
                                        && (actuatorList.size() <= trajectoryList.size())) {
                                    actuator = actuatorList.get(i);
                                    if (actuator.isEnabled()) {
                                        actuatorInfo = trajectoryInfo + "actuator_" + dimensionIndex + "_" + (i + 1)
                                        + "/";

                                        // Display actuator name only for the
                                        // first range
                                        if (rangeIndex == 1) {
                                            scanInfoList.add(actuatorInfo + "name:" + actuator.getName());
                                        }
                                        if (rangeList.size() > 1) {
                                            rangeInfo = "range_" + rangeIndex + "/";
                                        }
View Full Code Here

Examples of fr.soleil.salsa.entity.IActuator

    @Override
    public void notifyGotoClicked() {
        if (selectedFunction != null) {
            String scanServerName = getScanServer();
            ISensor sensor = selectedFunction.getArgumentCount() > 0 ? selectedSensor : null;
            IActuator actuator = selectedFunction.getArgumentCount() > 1 ? selectedActuator : null;
            try {
                ScanApi.doScanFunction(scanServerName, selectedFunction, sensor, actuator);
            }
            catch (SalsaDeviceException e) {
                errorMessage(e.getMessage());
View Full Code Here

Examples of fr.soleil.salsa.entity.IActuator

                view.setSensorsArray(sensorsArray);

                Option[] actuatorsArray = new Option[actuatorsList.size()];
                int actuatorIndex;
                int actuatorsNumber = actuatorsList.size();
                IActuator actuator;
                for (actuatorIndex = 0; actuatorIndex < actuatorsNumber; ++actuatorIndex) {
                    actuator = actuatorsList.get(actuatorIndex);
                    actuatorsArray[actuatorIndex] = new Option(actuator, actuator.getName());
                }
                view.setActuatorsArray(actuatorsArray);
            }
            else {
                view.setSensorsArray(new Option[0]);
View Full Code Here

Examples of fr.soleil.salsa.entity.IActuator

    @Override
    public void notifyGotoClicked() {
        if (selectedFunction != null) {
            String scanServerName = ModelPreferences.getInstance().getScanServer();
            ISensor sensor = selectedFunction.getArgumentCount() > 0 ? selectedSensor : null;
            IActuator actuator = selectedFunction.getArgumentCount() > 1 ? selectedActuator : null;
            try {
                ScanApi.doScanFunction(scanServerName, selectedFunction, sensor, actuator);
            }
            catch (SalsaDeviceException e) {
                errorMessage(e.getMessage());
View Full Code Here

Examples of fr.soleil.salsa.entity.IActuator

                view.setSensorsArray(sensorsArray);

                Option[] actuatorsArray = new Option[actuatorsList.size()];
                int actuatorIndex;
                int actuatorsNumber = actuatorsList.size();
                IActuator actuator;
                for (actuatorIndex = 0; actuatorIndex < actuatorsNumber; ++actuatorIndex) {
                    actuator = actuatorsList.get(actuatorIndex);
                    actuatorsArray[actuatorIndex] = new Option(actuator, actuator.getName());
                }
                view.setActuatorsArray(actuatorsArray);
            }
            else {
                view.setSensorsArray(new Option[0]);
View Full Code Here

Examples of fr.soleil.salsa.entity.IActuator

     * Set the actuator.
     *
     * @param actuator
     */
    public void setActuator(IActuator actuator) {
        IActuator oldValue = baseBean.getActuator();
        baseBean.setActuator(actuator);
        this.firePropertyChange("actuator", oldValue, actuator);
    }
View Full Code Here

Examples of fr.soleil.salsa.entity.IActuator

     * Set the actuator.
     *
     * @param actuator
     */
    public void setActuator(IActuator actuator) {
        IActuator oldValue = baseBean.getActuator();
        baseBean.setActuator(actuator);
        this.firePropertyChange("actuator", oldValue, actuator);
    }
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.