|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuk.ac.lancs.relate.gateways.GatewayApplication
public class GatewayApplication
This class models the GatewayApplication. Its task is to start the core RelateGatways framework by initializing and starting all the modules.
| Field Summary | |
|---|---|
Configuration |
conf
Access to configuration file |
| Constructor Summary | |
|---|---|
GatewayApplication(Trackable user)
Creates a new gateway application with one specific user |
|
| Method Summary | |
|---|---|
void |
addTrackableDevice(TrackableDevice device)
Adds a device to the list of discovered devices. |
void |
addWindow(GatewayController c)
Adds a new gateway to this application. |
void |
conditionalMode()
This changes the device discovery mode to the conditional mode where every device appears if and only if a least one of its conditions is meet. |
TriggerAgent |
getAgent()
Gets the trigger agent connected to this application. |
java.util.ArrayList<TrackableDevice> |
getDeviceMap()
Returns a list of all devices in this application. |
java.util.ArrayList<WOZDeviceTransferObject> |
getDeviceTransferObjects()
Returns a list of device transfer objects which are sent to and from the wizard who updates the position. |
ServiceDiscoveryManager |
getDiscoveryManager()
Gets the discovery managed of this application. |
ServiceRegistar |
getServiceRegistar()
Gets the service registar. |
Trackable |
getTrackable(java.lang.String id)
Returns the trackable with a specific id or null. |
java.util.ArrayList<Trackable> |
getTrackables()
Returns a list of all trackables in this application. |
boolean |
isRegisteredDevice(java.lang.String id)
This method returns true if the provided "id" corresponds to a registered device. |
boolean |
isScanningModeActive()
Returns true if scanning mode is active, false if auto mode is active. |
void |
listenToRelate()
This starts the Relate Service Discovery (i.e. |
void |
removeWindow(GatewayController c)
Removes a gateway from the list of shown gateways. |
void |
scanningMode()
This changes the device discovery mode to the scanning mode where every device is assigned a "show always" condition. |
void |
setScanningModeActive(boolean scanningModeActive)
Sets the variable that indicates whether scanning mode is active (true) of auto mode is active (false). |
void |
setupDevices()
Create all the devices and initialize their underlying services and conditions. |
void |
shutdown()
Shuts the application down. |
boolean |
spaceAvailable(java.awt.Point t,
java.awt.Point b,
TrackableDevice d)
Checks whether a required display space is available. |
void |
startClassServer()
|
void |
startDiscoveryManager()
|
void |
startServiceRegistarManager()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public Configuration conf
| Constructor Detail |
|---|
public GatewayApplication(Trackable user)
user - user| Method Detail |
|---|
public void setupDevices()
public void scanningMode()
public void conditionalMode()
public java.util.ArrayList<Trackable> getTrackables()
getTrackables in interface Applicationpublic Trackable getTrackable(java.lang.String id)
getTrackable in interface Applicationid - unique id
public java.util.ArrayList<TrackableDevice> getDeviceMap()
public java.util.ArrayList<WOZDeviceTransferObject> getDeviceTransferObjects()
getDeviceTransferObjects in interface WizardApplicationpublic boolean isScanningModeActive()
public void setScanningModeActive(boolean scanningModeActive)
scanningModeActive -
public boolean spaceAvailable(java.awt.Point t,
java.awt.Point b,
TrackableDevice d)
t - top-left corner of the requested display spaceb - bottom-right corner of the requested display space
public void addWindow(GatewayController c)
c - new gatewaypublic void removeWindow(GatewayController c)
c - gateway to be removedpublic void addTrackableDevice(TrackableDevice device)
public TriggerAgent getAgent()
public ServiceDiscoveryManager getDiscoveryManager()
public ServiceRegistar getServiceRegistar()
public void shutdown()
public boolean isRegisteredDevice(java.lang.String id)
public void startDiscoveryManager()
public void startServiceRegistarManager()
public void startClassServer()
public void listenToRelate()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||