|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
org.universAAL.lddi.samples.activityhub.client.ActivityHubClient
public class ActivityHubClient
This is the connector class to the uAAL related ontology classes, mainly MyActivityHubServiceConsumer.java This class knows nothing about Ontologies! It could be part of a Java application. Here, it is a single class application with a simple GUI. 2 Buttons are provided for 'getAllSensors' and 'getSensorInfo' Furthermore, 2 textAreas for incoming context events and log messages
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JPanel |
---|
JPanel.AccessibleJPanel |
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Container |
---|
Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary |
---|
Fields inherited from class javax.swing.JComponent |
---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
ActivityHubClient(Activator parent)
Constructor |
Method Summary | |
---|---|
void |
addActivityHubSensor(String resourceURI,
int sensorType)
create new activityhubsensors from iso11073 library, not from ontology! |
void |
addTextToContextArea(String text)
Helper class that displays the given text on the contextArea on the GUI adding a line break and set focus always to the bottom of the textArea |
void |
addTextToDeviceArea(String text)
Helper class that displays the given text on the deviceInfoArea on the GUI adding a line break and set focus always to the bottom of the textArea |
void |
addTextToLogArea(String text)
Helper class that displays the given text on the logArea on the GUI adding a line break |
void |
deleteGui()
|
void |
showContextEvent(String[] listData)
send all text lines from the given array to addTextToContextArea |
void |
showDeviceInfo(String[] listData)
send all text lines from the given array to addTextToDeviceArea |
void |
showSensorList()
just display the sensors that are already in the datastore this.activityHubSensors in the first list on the GUI Should be called after all sensors are stored through multiple calls of addActivityHubSensor |
void |
start()
|
Methods inherited from class javax.swing.JPanel |
---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ActivityHubClient(Activator parent)
link
- to ActivatorMethod Detail |
---|
public void start()
public void addActivityHubSensor(String resourceURI, int sensorType)
resourceURI
- instanceIdsensorType
- must be identical from the ontology model to the iso11073 library model !!public void showSensorList()
public void showDeviceInfo(String[] listData)
multiple
- text lines for 1 device info responsepublic void addTextToDeviceArea(String text)
text
- public void showContextEvent(String[] listData)
multiple
- text lines for 1 context eventpublic void addTextToContextArea(String text)
text
- public void addTextToLogArea(String text)
text
- public void deleteGui()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |