Package fr.soleil.salsa.entity

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) {
                Salsa.getApplicationController().errorMessage(e.getMessage());
                if (e.isConsoleDisplay()) {
View Full Code Here


            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

                for(int actuatorXIndex = 0; actuatorXIndex < actuatorsXNamesArray.length; ++actuatorXIndex) {
                    actuatorsXNamesArray[actuatorXIndex] = actuatorsXNamesArrayTmp[actuatorXIndex];
                }
               
                String[] actuatorsXValueKeysArray = scanServerProxy.read_attribute("actuatorsDataList").extractStringArray();
                IActuator actuatorX;
                String actuatorXValueKey;
                double[] actuatorXValuesArray;
                DeviceAttribute actuatorXValueAttribute;
                for(int actuatorXIndex = 0;
                        actuatorXIndex < actuatorsXNamesArray.length && actuatorXIndex < actuatorsXValueKeysArray.length;
                        ++actuatorXIndex) {
                    actuatorXName = actuatorsXNamesArray[actuatorXIndex];
                    actuatorX = new ActuatorImpl();
                    actuatorX.setName(actuatorXName);
                    actuatorX.setEnabled(true);
                    scanResult.getActuatorsXList().add(actuatorX);
                   
                    actuatorXValueKey = actuatorsXValueKeysArray[actuatorXIndex];
                   
                    actuatorXValueAttribute = scanServerProxy.read_attribute(actuatorXValueKey);
                    actuatorXValuesArray = AttributeHelper.extractToDoubleArray(actuatorXValueAttribute);
                    actuatorX.setScanServerAttributeName(scanServerProxy.get_name() + "/" + actuatorXValueKey);
   
                    pointIndex = 0;
                    for(double actuatorXValue : actuatorXValuesArray) {
                        // The reading can occur during the scan. Because of this, more values can have been added since
                        // scanPointsList was initialized. Hence the test scanPointsList.size() > pointIndex.
View Full Code Here

        return this.baseBean.getRange();
    }

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

                if (trajectoryList != null) {
                    List<ITrajectory> trajectoryModelList = new ArrayList<ITrajectory>();
                    for (ITrajectory trajectory : trajectoryList) {
                        ITrajectory trajectoryModel = trajectory.toModel();
                        if (trajectoryModel instanceof IActuatorTrajectory) {
                            IActuator actuator = ((IActuatorTrajectory) trajectory).getActuator();
                            ((IActuatorTrajectory) trajectoryModel)
                                    .setActuator((IActuator) actuator.toModel());
                        }
                        trajectory.setIRange(this);
                        trajectoryModelList.add(trajectoryModel);
                    }
                    model.setTrajectoriesList(trajectoryModelList);
View Full Code Here

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

     * 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

        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

     * 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

    public void notifyNewRange() {
        if (config != null) {
            IDimensionEnergy dimensionEnergy = config.getDimensionX();
            List<IActuator> actuatorsList = dimensionEnergy.getActuatorsList();
            if (actuatorsList.size() != 0) {
                IActuator actuator = actuatorsList.get(0);
                IRangeEnergy rangeEnergy = createRange(dimensionEnergy);
                ITrajectoryEnergy trajectoryEnergy = createTrajectory(rangeEnergy, actuator);
                List<ITrajectory> trajectoriesList = rangeEnergy.getTrajectoriesList();
                if (trajectoriesList == null) {
                    trajectoriesList = new ArrayList<ITrajectory>();
View Full Code Here

TOP

Related Classes of fr.soleil.salsa.entity.IActuator

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.