コード例 #1
0
 /** Constructor */
 public NodePropertyRecord(
     final AcceleratorNode node, final String propertyName, final double loggedValue) {
   NODE = node;
   PROPERTY_NAME = propertyName;
   this.loggedValue = loggedValue;
   Channel[] channels = NODE.getLivePropertyChannels(PROPERTY_NAME);
   channelMonitors = createMonitors(channels);
   MODEL_INPUT = new ModelInput(node, PROPERTY_NAME, Double.NaN);
 }
コード例 #2
0
 /** Constructor with adaptor */
 public NodePropertyRecord(
     final AcceleratorNode node,
     final String propertyName,
     final double loggedValue,
     final DataAdaptor adaptor) {
   NODE = node;
   PROPERTY_NAME = propertyName;
   this.loggedValue = loggedValue;
   Channel[] channels = NODE.getLivePropertyChannels(PROPERTY_NAME);
   channelMonitors = createMonitors(channels);
   double testValue =
       (adaptor.hasAttribute("testValue")) ? adaptor.doubleValue("testValue") : Double.NaN;
   MODEL_INPUT = new ModelInput(node, PROPERTY_NAME, testValue);
   if (adaptor.hasAttribute("checkState")) checkState = adaptor.booleanValue("checkState");
   if (adaptor.hasAttribute("scanStartValue"))
     scanStartValue = adaptor.doubleValue("scanStartValue");
   if (adaptor.hasAttribute("scanEndValue")) scanEndValue = adaptor.doubleValue("scanEndValue");
   if (adaptor.hasAttribute("scanSteps")) scanSteps = adaptor.intValue("scanSteps");
 }
コード例 #3
0
 public void refresh(final double loggedValue) {
   Channel[] channels = NODE.getLivePropertyChannels(PROPERTY_NAME);
   channelMonitors = createMonitors(channels);
   this.loggedValue = loggedValue;
 }