Package fr.soleil.comete.util

Examples of fr.soleil.comete.util.Point


    final DataArray dataArray = new DataArray();
    dataList.add(dataArray);

    dataArray.setId(name);

    Point p;
    for (int i = 0; i < listX.length; i++) {
      p = new Point();
      p.x = listX[i];
      p.y = listY[i];
      dataArray.add(p);
    }
  }
View Full Code Here


        readArray.setId(sensor.getName());
        readArray.setDisplayName(sensor.getName());
        readArray.setFormat(getFormat());
        readArray.setReadOnly(true);
        for (int index = 0; index < readDoubleArray.length; ++index) {
            readArray.add(new Point(index, readDoubleArray[index]));
        }
        dataList.add(readArray);
        if (!getReadOnly()) {
            Double[] writeDoubleArray = report.getWriteSpectrumData();
            DataArray writeArray = new DataArray();
            writeArray.setId("Write part");
            writeArray.setDisplayName("Write part");
            writeArray.setFormat(getFormat());
            writeArray.setReadOnly(false);
            for (int index = 0; index < writeDoubleArray.length; ++index) {
                writeArray.add(new Point(index, writeDoubleArray[index]));
            }
            dataList.add(writeArray);
        }
        return dataList;
    }
View Full Code Here

        readArray.setId(actuator.getName());
        readArray.setDisplayName(actuator.getName());
        readArray.setFormat(getFormat());
        readArray.setReadOnly(true);
        for(int index = 0; index < readDoubleArray.length; ++index) {
            readArray.add(new Point(index, readDoubleArray[index]));
        }
        dataList.add(readArray);
        if(!getReadOnly()) {
            Double[] writeDoubleArray = report.getWriteSpectrumData();
            DataArray writeArray = new DataArray();
            writeArray.setId("Write part");
            writeArray.setDisplayName("Write part");
            writeArray.setFormat(getFormat());
            writeArray.setReadOnly(false);
            for(int index = 0; index < writeDoubleArray.length; ++index) {
                writeArray.add(new Point(index, writeDoubleArray[index]));
            }
            dataList.add(writeArray);
        }
        return dataList;
    }
View Full Code Here

                Object xComponent = getComponent(scanResult, xAxisComponent);
               
                List<IScanPoint> scanPointList = scanResult.getScanPointsList();
                Double xx;
                DataArray dataArray;
                Point point;
                ISensor sensor;
                IActuator actuator;
                for(IScanPoint scanPoint : scanPointList) {
                    if(xComponent instanceof IActuator) {
                        xx = scanPoint.getValue((IActuator) xComponent);
                    }
                    else if(xComponent instanceof ISensor) {
                        xx = scanPoint.getValue((ISensor) xComponent);
                    }
                    else {
                        xx = scanPoint.getTime();
                    }
                    for(Map.Entry<ISensor, DataArray> dataSensorEntry : dataSensorMap.entrySet()) {
                        sensor = dataSensorEntry.getKey();
                        dataArray = dataSensorEntry.getValue();
                        point = new Point(xx, scanPoint.getValue(sensor));
                        dataArray.add(point);
                    }
                    for(Map.Entry<IActuator, DataArray> dataActuatorEntry : dataActuatorMap.entrySet()) {
                        actuator = dataActuatorEntry.getKey();
                        dataArray = dataActuatorEntry.getValue();
                        point = new Point(xx, scanPoint.getValue(actuator));
                        dataArray.add(point);
                    }
                    if(dataTime != null) {
                        point = new Point(xx, scanPoint.getTime());
                        dataTime.add(point);
                    }
                }
            }
        }
View Full Code Here

                Object xComponent = getComponent(scanResult, xAxisComponent);

                List<IScanPoint> scanPointList = scanResult.getScanPointsList();
                Double xx;
                DataArray dataArray;
                Point point;
                ISensor sensor;
                IActuator actuator;
                for (IScanPoint scanPoint : scanPointList) {
                    if (xComponent instanceof IActuator) {
                        xx = scanPoint.getValue((IActuator) xComponent);
                    }
                    else if (xComponent instanceof ISensor) {
                        xx = scanPoint.getValue((ISensor) xComponent);
                    }
                    else {
                        xx = scanPoint.getTime();
                    }
                    for (Map.Entry<ISensor, DataArray> dataSensorEntry : dataSensorMap.entrySet()) {
                        sensor = dataSensorEntry.getKey();
                        dataArray = dataSensorEntry.getValue();
                        point = new Point(xx, scanPoint.getValue(sensor));
                        dataArray.add(point);
                    }
                    for (Map.Entry<IActuator, DataArray> dataActuatorEntry : dataActuatorMap
                            .entrySet()) {
                        actuator = dataActuatorEntry.getKey();
                        dataArray = dataActuatorEntry.getValue();
                        point = new Point(xx, scanPoint.getValue(actuator));
                        dataArray.add(point);
                    }
                    if (dataTime != null) {
                        point = new Point(xx, scanPoint.getTime());
                        dataTime.add(point);
                    }
                }
            }
        }
View Full Code Here

        readArray.setId(actuator.getName());
        readArray.setDisplayName(actuator.getName());
        readArray.setFormat(getFormat());
        readArray.setReadOnly(true);
        for (int index = 0; index < readDoubleArray.length; ++index) {
            readArray.add(new Point(index, readDoubleArray[index]));
        }
        dataList.add(readArray);
        if (!getReadOnly()) {
            Double[] writeDoubleArray = report.getWriteSpectrumData();
            DataArray writeArray = new DataArray();
            writeArray.setId("Write part");
            writeArray.setDisplayName("Write part");
            writeArray.setFormat(getFormat());
            writeArray.setReadOnly(false);
            for (int index = 0; index < writeDoubleArray.length; ++index) {
                writeArray.add(new Point(index, writeDoubleArray[index]));
            }
            dataList.add(writeArray);
        }
        return dataList;
    }
View Full Code Here

                Object xComponent = getComponent(scanResult, xAxisComponent);

                List<IScanPoint> scanPointList = scanResult.getScanPointsList();
                Double xx;
                DataArray dataArray;
                Point point;
                ISensor sensor;
                IActuator actuator;
                for (IScanPoint scanPoint : scanPointList) {
                    if (xComponent instanceof IActuator) {
                        xx = scanPoint.getValue((IActuator) xComponent);
                    }
                    else if (xComponent instanceof ISensor) {
                        xx = scanPoint.getValue((ISensor) xComponent);
                    }
                    else {
                        xx = scanPoint.getTime();
                    }
                    for (Map.Entry<ISensor, DataArray> dataSensorEntry : dataSensorMap.entrySet()) {
                        sensor = dataSensorEntry.getKey();
                        dataArray = dataSensorEntry.getValue();
                        point = new Point(xx, scanPoint.getValue(sensor));
                        dataArray.add(point);
                    }
                    for (Map.Entry<IActuator, DataArray> dataActuatorEntry : dataActuatorMap
                            .entrySet()) {
                        actuator = dataActuatorEntry.getKey();
                        dataArray = dataActuatorEntry.getValue();
                        point = new Point(xx, scanPoint.getValue(actuator));
                        dataArray.add(point);
                    }
                    if (dataTime != null) {
                        point = new Point(xx, scanPoint.getTime());
                        dataTime.add(point);
                    }
                }
            }
        }
View Full Code Here

                Object xComponent = getComponent(scanResult, xAxisComponent);

                List<IScanPoint> scanPointList = scanResult.getScanPointsList();
                Double xx;
                DataArray dataArray;
                Point point;
                ISensor sensor;
                IActuator actuator;
                for (IScanPoint scanPoint : scanPointList) {
                    if (xComponent instanceof IActuator) {
                        xx = scanPoint.getValue((IActuator) xComponent);
                    }
                    else if (xComponent instanceof ISensor) {
                        xx = scanPoint.getValue((ISensor) xComponent);
                    }
                    else {
                        xx = scanPoint.getTime();
                    }
                    for (Map.Entry<ISensor, DataArray> dataSensorEntry : dataSensorMap.entrySet()) {
                        sensor = dataSensorEntry.getKey();
                        dataArray = dataSensorEntry.getValue();
                        point = new Point(xx, scanPoint.getValue(sensor));
                        dataArray.add(point);
                    }
                    for (Map.Entry<IActuator, DataArray> dataActuatorEntry : dataActuatorMap
                            .entrySet()) {
                        actuator = dataActuatorEntry.getKey();
                        dataArray = dataActuatorEntry.getValue();
                        point = new Point(xx, scanPoint.getValue(actuator));
                        dataArray.add(point);
                    }
                    if (dataTime != null) {
                        point = new Point(xx, scanPoint.getTime());
                        dataTime.add(point);
                    }
                }
            }
        }
View Full Code Here

                Object xComponent = getComponent(scanResult, xAxisComponent);

                List<IScanPoint> scanPointList = scanResult.getScanPointsList();
                Double xx;
                DataArray dataArray;
                Point point;
                ISensor sensor;
                IActuator actuator;
                for (IScanPoint scanPoint : scanPointList) {
                    if (xComponent instanceof IActuator) {
                        xx = scanPoint.getValue((IActuator) xComponent);
                    }
                    else if (xComponent instanceof ISensor) {
                        xx = scanPoint.getValue((ISensor) xComponent);
                    }
                    else {
                        xx = scanPoint.getTime();
                    }
                    for (Map.Entry<ISensor, DataArray> dataSensorEntry : dataSensorMap.entrySet()) {
                        sensor = dataSensorEntry.getKey();
                        dataArray = dataSensorEntry.getValue();
                        point = new Point(xx, scanPoint.getValue(sensor));
                        dataArray.add(point);
                    }
                    for (Map.Entry<IActuator, DataArray> dataActuatorEntry : dataActuatorMap
                            .entrySet()) {
                        actuator = dataActuatorEntry.getKey();
                        dataArray = dataActuatorEntry.getValue();
                        point = new Point(xx, scanPoint.getValue(actuator));
                        dataArray.add(point);
                    }
                    if (dataTime != null) {
                        point = new Point(xx, scanPoint.getTime());
                        dataTime.add(point);
                    }
                }
            }
        }
View Full Code Here

                Object xComponent = getComponent(scanResult, xAxisComponent);
               
                List<IScanPoint> scanPointList = scanResult.getScanPointsList();
                Double xx;
                DataArray dataArray;
                Point point;
                ISensor sensor;
                IActuator actuator;
                for(IScanPoint scanPoint : scanPointList) {
                    if(xComponent instanceof IActuator) {
                        xx = scanPoint.getValue((IActuator) xComponent);
                    }
                    else if(xComponent instanceof ISensor) {
                        xx = scanPoint.getValue((ISensor) xComponent);
                    }
                    else {
                        xx = scanPoint.getTime();
                    }
                    for(Map.Entry<ISensor, DataArray> dataSensorEntry : dataSensorMap.entrySet()) {
                        sensor = dataSensorEntry.getKey();
                        dataArray = dataSensorEntry.getValue();
                        point = new Point(xx, scanPoint.getValue(sensor));
                        dataArray.add(point);
                    }
                    for(Map.Entry<IActuator, DataArray> dataActuatorEntry : dataActuatorMap.entrySet()) {
                        actuator = dataActuatorEntry.getKey();
                        dataArray = dataActuatorEntry.getValue();
                        point = new Point(xx, scanPoint.getValue(actuator));
                        dataArray.add(point);
                    }
                    if(dataTime != null) {
                        point = new Point(xx, scanPoint.getTime());
                        dataTime.add(point);
                    }
                }
            }
        }
View Full Code Here

TOP

Related Classes of fr.soleil.comete.util.Point

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.