Examples of StringMatrix


Examples of fr.soleil.comete.util.StringMatrix

      StringArrayCommandDAO cmdArray = ((TangoDAOFactory) factory)
      .createStringArrayCommandDAO(m_cmdhelper.getDeviceName(), m_cmdhelper
          .getEntityName());

      cmdArray.execute();
      StringMatrix values = cmdArray.getData();
      if (values != null) {
        String[] valueList = values.getFlatValues();
        if (valueList != null && valueList.length > 0) {
          setValueList(valueList);
        }
      }
    }
View Full Code Here

Examples of fr.soleil.comete.util.StringMatrix

      StringArrayCommandDAO cmdArray = ((TangoDAOFactory) factory)
      .createStringArrayCommandDAO(m_cmdhelper.getDeviceName(), m_cmdhelper
          .getEntityName());

      cmdArray.execute();
      StringMatrix values = cmdArray.getData();
      if (values != null) {
        String[] valueList = values.getFlatValues();
        if (valueList != null && valueList.length > 0) {
          setValueList(valueList);
        }
      }
    }
View Full Code Here

Examples of fr.soleil.comete.util.StringMatrix

      if (factory != null && factory instanceof TangoDAOFactory) {
        StringArrayCommandDAO cmdArray = ((TangoDAOFactory) factory)
        .createStringArrayCommandDAO(m_cmdhelper.getDeviceName(), m_cmdhelper
            .getEntityName());
        cmdArray.execute();
        StringMatrix values = cmdArray.getData();
        if (values != null) {
          String[] valueList = values.getFlatValues();
          if (valueList != null && valueList.length > 0) {
            Number[] numberValueList = new Number[valueList.length];
            Number numberValue = null;
            for (int i = 0; i < numberValueList.length; i++) {
              try {
View Full Code Here

Examples of fr.soleil.comete.util.StringMatrix

     * @param dao
     */
    private void refresh() {
        String[][] serverHistoricAsStringArray;
        if (dao != null) {
            StringMatrix data = dao.getData();
            if (data != null) {
                serverHistoricAsStringArray = data.getValues();
            }
            else {
                serverHistoricAsStringArray = null;
            }
        }
View Full Code Here

Examples of fr.soleil.comete.util.StringMatrix

     * @param dao
     */
    private void refresh() {
        String[][] historicAsStringArray;
        if (dao != null) {
            StringMatrix data = dao.getData();
            if (data != null) {
                historicAsStringArray = data.getValues();
            }
            else {
                historicAsStringArray = null;
            }
        }
View Full Code Here

Examples of fr.soleil.comete.util.StringMatrix

        noReadCycles = 0;
        if (!autoRefresh && !inError) {
            setAutoRefresh(true);
        }
        String scanServerName = ModelPreferences.getInstance().getScanServer();
        StringMatrix data;
        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) {
                data = null;
                if (e.isConsoleDisplay()) {
                    e.printStackTrace();
View Full Code Here

Examples of fr.soleil.comete.util.StringMatrix

     * @param dao
     */
    private void refresh() {
        String[][] historicAsStringArray;
        if (dao != null) {
            StringMatrix data = dao.getData();
            if (data != null) {
                historicAsStringArray = data.getValues();
            }
            else {
                historicAsStringArray = null;
            }
        }
View Full Code Here

Examples of fr.soleil.comete.util.StringMatrix

     * @param dao
     */
    private void refresh() {
        String[][] historicAsStringArray;
        if(dao != null) {
            StringMatrix data = dao.getData();
            if(data != null) {
                historicAsStringArray = data.getValues();
            }
            else {
                historicAsStringArray = null;
            }
        }
View Full Code Here

Examples of fr.soleil.comete.util.StringMatrix

        noReadCycles = 0;
        if (!autoRefresh && !inError) {
            setAutoRefresh(true);
        }
        String scanServerName = ModelPreferences.getInstance().getScanServer();
        StringMatrix data;
        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) {
                data = null;
                if (e.isConsoleDisplay()) {
                    e.printStackTrace();
View Full Code Here

Examples of fr.soleil.comete.util.StringMatrix

        noReadCycles = 0;
        if (!autoRefresh && !inError) {
            setAutoRefresh(true);
        }
        String scanServerName = ModelPreferences.getInstance().getScanServer();
        StringMatrix data;
        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) {
                data = null;
                if (e.isConsoleDisplay()) {
                    e.printStackTrace();
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.