2009-01-09 1.2.0

org.eclipse.soda.dk.profile.swt
Class MeasurementBridge

java.lang.Object
  extended by org.eclipse.soda.dk.profile.swt.Bridge
      extended by org.eclipse.soda.dk.profile.swt.MeasurementBridge

public class MeasurementBridge
extends Bridge

Since:
1.0
Version:
1.2.0

Field Summary
protected  java.lang.String topicGet
          Define the topic get (String) field.
protected  java.lang.String topicRead
          Define the topic read (String) field.
 
Fields inherited from class org.eclipse.soda.dk.profile.swt.Bridge
count, data, errorCount, key, parent, refreshCount, timstamp, treeItem, window
 
Constructor Summary
MeasurementBridge(ProfileSwt parent, org.eclipse.swt.widgets.TreeItem treeItem, java.lang.String key)
          Constructs an instance of this class from the specified tree item and control parameters.
 
Method Summary
 void executeGet()
          Execute get.
 void executeRead()
          Execute read.
 org.eclipse.swt.graphics.Image getImage()
          Gets the image value.
 java.lang.String getTopicGet()
          Gets the topic get (String) value.
 java.lang.String getTopicRead()
          Gets the topic read (String) value.
 void measurementChanged(MeasurementService source, java.lang.Object timestamp, java.lang.Object newValue, java.lang.Object oldValue)
          Measurement changed with the specified source, timestamp, new value and old value parameters.
 void setTopicGet(java.lang.String topicGet)
          Sets the topic get value.
 void setTopicRead(java.lang.String topicRead)
          Sets the topic read value.
 
Methods inherited from class org.eclipse.soda.dk.profile.swt.Bridge
broadcast, closeWindow, errorOccurred, getCount, getData, getErrorCount, getKey, getParent, getPrefix, getRefreshCount, getTimstamp, getTreeItem, getWindow, gray, notificationReceived, openWindow, prependPrefix, refresh, setCount, setData, setErrorCount, setGrayed, setKey, setParent, setRefreshCount, setTimstamp, setTimstamp, setTreeItem, setWindow, updateCount, updateRefreshCount, updateTree
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

topicGet

protected java.lang.String topicGet
Define the topic get (String) field.


topicRead

protected java.lang.String topicRead
Define the topic read (String) field.

Constructor Detail

MeasurementBridge

public MeasurementBridge(ProfileSwt parent,
                         org.eclipse.swt.widgets.TreeItem treeItem,
                         java.lang.String key)
Constructs an instance of this class from the specified tree item and control parameters.

Parameters:
parent - The parent (DeviceSwt) parameter.
treeItem - The tree item (TreeItem) parameter.
key - The key (String) parameter.
Method Detail

executeGet

public void executeGet()
Execute get.

See Also:
getTopicGet(), setTopicGet(String)

executeRead

public void executeRead()
Execute read.

See Also:
getTopicRead(), setTopicRead(String)

getImage

public org.eclipse.swt.graphics.Image getImage()
Gets the image value.

Overrides:
getImage in class Bridge
Returns:
The image (Image) value.

getTopicGet

public java.lang.String getTopicGet()
Gets the topic get (String) value.

Returns:
The topic get (String) value.
See Also:
setTopicGet(String)

getTopicRead

public java.lang.String getTopicRead()
Gets the topic read (String) value.

Returns:
The topic read (String) value.
See Also:
setTopicRead(String)

measurementChanged

public void measurementChanged(MeasurementService source,
                               java.lang.Object timestamp,
                               java.lang.Object newValue,
                               java.lang.Object oldValue)
Measurement changed with the specified source, timestamp, new value and old value parameters.

Parameters:
source - The source (MeasurementService) parameter.
timestamp - The timestamp (Object) parameter.
newValue - The new value (Object) parameter.
oldValue - The old value (Object) parameter.

setTopicGet

public void setTopicGet(java.lang.String topicGet)
Sets the topic get value.

Parameters:
topicGet - The topic get (String) parameter.
See Also:
getTopicGet()

setTopicRead

public void setTopicRead(java.lang.String topicRead)
Sets the topic read value.

Parameters:
topicRead - The topic read (String) parameter.
See Also:
getTopicRead()

2009-01-09 1.2.0

Copyright (c) 2009 IBM. See license in Legal section.