Package fr.soleil.salsa.client.entity.event

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


            // Case when the list of actuator equal 1 and the type of scan is SCAN ENERGY
            // Can not add other row in the list of actuators
            boolean stopAdd = ((config.getType().equals(ScanType.SCAN_ENERGY) || (config.getType()
                    .equals(ScanType.SCAN_K))) && listActuator.size() == 1) ? true : false;
            if (!stopAdd) {
                IActuator actuator = new ActuatorModel();
                actuator.setName(defaultActuatorName);
                if (value != null) {
                    actuator.setName(value);
                }
                actuator.setEnabled(true);
                boolean addSucces = this.actuatorsListView.addRow(actuator);
                if (addSucces)
                    this.listActuator.add(actuator);
            }
View Full Code Here


        }
        else if (this.listActuator.size() == 0) {
            for (int i = 0; i < this.actuatorsListView.getModel().getRowCount(); i++) {
                String actuatorName = (String) this.actuatorsListView.getModel().getValueAt(i, 1);
                Boolean isEnabled = (Boolean) this.actuatorsListView.getModel().getValueAt(i, 0);
                IActuator actuator = new ActuatorModel();
                actuator.setName(actuatorName);
                actuator.setEnabled(isEnabled);
                this.listActuator.add(actuator);
            }

        }
    }
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

TOP

Related Classes of fr.soleil.salsa.client.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.