Package simtools.data.async

Examples of simtools.data.async.MultiStampedDataSource


    }

    protected void updateMSvalues() {
        try {
            if (dataSource instanceof MultiStampedDataSource) {
                MultiStampedDataSource jds = (MultiStampedDataSource) dataSource;
                if (jds.getTime() != null) {
                    Number time = (Number) jds.getTime().getValue(jds.getLastIndex());
                    tfTime1.setText(TimeStampedDataSourceInformation.dateTimeFormatter
                            .format(new Date(time.longValue())));
                }
                if (jds.getRaw() != null) {
                    Long raw = new Long(jds.getRaw().getLongValue(jds.getLastIndex()));
                    tfRaw.setText(raw.toString());
                }
                Object value = jds.getValue(jds.getLastIndex());
                tfPhysical.setText(value.toString());
                if (jds.getLabel() != null) {
                    String label = (String) jds.getLabel().getValue(jds.getLastIndex());
                    tfLabel.setText(String.valueOf(label));
                }
                if (jds.getStatus() != null) {
                    Integer valueNumber = new Integer(((Long) jds.getStatus().getValue(jds.getLastIndex())).intValue());
                    tfStatus.setText(valueNumber.toString());
                }
            }
        } catch (DataException e) {
        }
View Full Code Here

TOP

Related Classes of simtools.data.async.MultiStampedDataSource

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.