Examples of HistoricRecord


Examples of fr.soleil.salsa.api.item.HistoricRecord

        if (scanServerName != null && !"".equals(scanServerName) && !inError) {
            try {
                List<HistoricRecord> historicRecordsList = ScanApi.getHistoric(scanServerName);
                int size = historicRecordsList.size();
                String[][] historicAsArray = new String[size][3];
                HistoricRecord record;
                for (int index = 0; index < size; ++index) {
                    record = historicRecordsList.get(index);
                    historicAsArray[index][0] = periodFormat.format(record.getPeriod());
                    historicAsArray[index][1] = record.getType();
                    historicAsArray[index][2] = record.getMessage();
                }
                data = new StringMatrix();
                data.setValues(historicAsArray);
            }
            catch (SalsaDeviceException e) {
View Full Code Here

Examples of fr.soleil.salsa.api.item.HistoricRecord

        // that we have a guaranteed multiple of 5.
        String periodAsString;
        // Double period;
        String type;
        String message;
        HistoricRecord record;
        List<HistoricRecord> recordsList = new ArrayList<HistoricRecord>();
        for (int index = 0; index < stopIndex; index += 5) {
            periodAsString = historicStringArray[index];
            type = historicStringArray[index + 1];
            message = historicStringArray[index + 2];
            // try {
            // period = Double.valueOf(periodAsString);
            // }
            // catch (NumberFormatException e) {
            // e.printStackTrace();
            // throw new SalsaDeviceException("Error : cannot parse period \"" + periodAsString
            // + "\" when reading the historic : " + e.getMessage(), e);
            // }
            record = new HistoricRecord();
            record.setPeriod(periodAsString);
            record.setType(type);
            record.setMessage(message);
            recordsList.add(record);
        }
        return recordsList;
    }
View Full Code Here

Examples of fr.soleil.salsa.api.item.HistoricRecord

        // that we have a guaranteed multiple of 5.
        String periodAsString;
        Double period;
        String type;
        String message;
        HistoricRecord record;
        List<HistoricRecord> recordsList = new ArrayList<HistoricRecord>();
        for (int index = 0; index < stopIndex; index += 5) {
            periodAsString = historicStringArray[index];
            type = historicStringArray[index + 1];
            message = historicStringArray[index + 2];
            try {
                period = periodFormat.parse(periodAsString).doubleValue();
            }
            catch (ParseException e) {
                e.printStackTrace();
                throw new SalsaDeviceException("Error : cannot parse period \"" + periodAsString
                        + "\" when reading the historic : " + e.getMessage(), e);
            }
            record = new HistoricRecord();
            record.setPeriod(period);
            record.setType(type);
            record.setMessage(message);
            recordsList.add(record);
        }
        return recordsList;
    }
View Full Code Here

Examples of fr.soleil.salsa.api.item.HistoricRecord

        // that we have a guaranteed multiple of 5.
        String periodAsString;
        Double period;
        String type;
        String message;
        HistoricRecord record;
        List<HistoricRecord> recordsList = new ArrayList<HistoricRecord>();
        for (int index = 0; index < stopIndex; index += 5) {
            periodAsString = historicStringArray[index];
            type = historicStringArray[index + 1];
            message = historicStringArray[index + 2];
            try {
                period = periodFormat.parse(periodAsString).doubleValue();
            }
            catch (ParseException e) {
                e.printStackTrace();
                throw new SalsaDeviceException("Error : cannot parse period \"" + periodAsString
                        + "\" when reading the historic : " + e.getMessage(), e);
            }
            record = new HistoricRecord();
            record.setPeriod(period);
            record.setType(type);
            record.setMessage(message);
            recordsList.add(record);
        }
        return recordsList;
    }
View Full Code Here

Examples of fr.soleil.salsa.api.item.HistoricRecord

        // that we have a guaranteed multiple of 5.
        String periodAsString;
        // Double period;
        String type;
        String message;
        HistoricRecord record;
        List<HistoricRecord> recordsList = new ArrayList<HistoricRecord>();
        for (int index = 0; index < stopIndex; index += 5) {
            periodAsString = historicStringArray[index];
            type = historicStringArray[index + 1];
            message = historicStringArray[index + 2];
            // try {
            // period = Double.valueOf(periodAsString);
            // }
            // catch (NumberFormatException e) {
            // e.printStackTrace();
            // throw new SalsaDeviceException("Error : cannot parse period \"" +
            // periodAsString
            // + "\" when reading the historic : " + e.getMessage(), e);
            // }
            record = new HistoricRecord();
            record.setPeriod(periodAsString);
            record.setType(type);
            record.setMessage(message);
            recordsList.add(record);
        }
        return recordsList;
    }
View Full Code Here

Examples of fr.soleil.salsa.api.item.HistoricRecord

        // that we have a guaranteed multiple of 5.
        String periodAsString;
        // Double period;
        String type;
        String message;
        HistoricRecord record;
        List<HistoricRecord> recordsList = new ArrayList<HistoricRecord>();
        for (int index = 0; index < stopIndex; index += 5) {
            periodAsString = historicStringArray[index];
            type = historicStringArray[index + 1];
            message = historicStringArray[index + 2];
            // try {
            // period = Double.valueOf(periodAsString);
            // }
            // catch (NumberFormatException e) {
            // e.printStackTrace();
            // throw new SalsaDeviceException("Error : cannot parse period \"" + periodAsString
            // + "\" when reading the historic : " + e.getMessage(), e);
            // }
            record = new HistoricRecord();
            record.setPeriod(periodAsString);
            record.setType(type);
            record.setMessage(message);
            recordsList.add(record);
        }
        return recordsList;
    }
View Full Code Here

Examples of fr.soleil.salsa.api.item.HistoricRecord

        // that we have a guaranteed multiple of 5.
        String periodAsString;
        // Double period;
        String type;
        String message;
        HistoricRecord record;
        List<HistoricRecord> recordsList = new ArrayList<HistoricRecord>();
        for (int index = 0; index < stopIndex; index += 5) {
            periodAsString = historicStringArray[index];
            type = historicStringArray[index + 1];
            message = historicStringArray[index + 2];
            // try {
            // period = Double.valueOf(periodAsString);
            // }
            // catch (NumberFormatException e) {
            // e.printStackTrace();
            // throw new SalsaDeviceException("Error : cannot parse period \"" + periodAsString
            // + "\" when reading the historic : " + e.getMessage(), e);
            // }
            record = new HistoricRecord();
            record.setPeriod(periodAsString);
            record.setType(type);
            record.setMessage(message);
            recordsList.add(record);
        }
        return recordsList;
    }
View Full Code Here

Examples of fr.soleil.salsa.api.item.HistoricRecord

        // that we have a guaranteed multiple of 5.
        String periodAsString;
        // Double period;
        String type;
        String message;
        HistoricRecord record;
        List<HistoricRecord> recordsList = new ArrayList<HistoricRecord>();
        for (int index = 0; index < stopIndex; index += 5) {
            periodAsString = historicStringArray[index];
            type = historicStringArray[index + 1];
            message = historicStringArray[index + 2];
            // try {
            // period = Double.valueOf(periodAsString);
            // }
            // catch (NumberFormatException e) {
            // e.printStackTrace();
            // throw new SalsaDeviceException("Error : cannot parse period \"" + periodAsString
            // + "\" when reading the historic : " + e.getMessage(), e);
            // }
            record = new HistoricRecord();
            record.setPeriod(periodAsString);
            record.setType(type);
            record.setMessage(message);
            recordsList.add(record);
        }
        return recordsList;
    }
View Full Code Here

Examples of fr.soleil.salsa.api.item.HistoricRecord

        if (scanServerName != null && !"".equals(scanServerName) && !inError) {
            try {
                List<HistoricRecord> historicRecordsList = ScanApi.getHistoric(scanServerName);
                int size = historicRecordsList.size();
                String[][] historicAsArray = new String[size][3];
                HistoricRecord record;
                for (int index = 0; index < size; ++index) {
                    record = historicRecordsList.get(index);
                    historicAsArray[index][0] = periodFormat.format(record.getPeriod());
                    historicAsArray[index][1] = record.getType();
                    historicAsArray[index][2] = record.getMessage();
                }
                data = new StringMatrix();
                data.setValues(historicAsArray);
            }
            catch (SalsaDeviceException e) {
View Full Code Here

Examples of fr.soleil.salsa.api.item.HistoricRecord

        if (scanServerName != null && !"".equals(scanServerName) && !inError) {
            try {
                List<HistoricRecord> historicRecordsList = ScanApi.getHistoric(scanServerName);
                int size = historicRecordsList.size();
                String[][] historicAsArray = new String[size][3];
                HistoricRecord record;
                for (int index = 0; index < size; ++index) {
                    record = historicRecordsList.get(index);
                    historicAsArray[index][0] = periodFormat.format(record.getPeriod());
                    historicAsArray[index][1] = record.getType();
                    historicAsArray[index][2] = record.getMessage();
                }
                data = new StringMatrix();
                data.setValues(historicAsArray);
            }
            catch (SalsaDeviceException e) {
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.