de.unikassel.android.sdcframework.devices
Class SensorDeviceConfigurationUpdateVisitor

Package class diagram package SensorDeviceConfigurationUpdateVisitor
java.lang.Object
  extended by de.unikassel.android.sdcframework.devices.SensorDeviceConfigurationUpdateVisitor
All Implemented Interfaces:
SensorDeviceVisitor

public final class SensorDeviceConfigurationUpdateVisitor
extends Object
implements SensorDeviceVisitor

Implementation of the visitor for sensor device configuration updates.


Field Summary
(package private)  Context context
          The application context
(package private)  SensorDeviceConfigurationChangeEvent update
          the configuration update
 
Constructor Summary
private SensorDeviceConfigurationUpdateVisitor()
          Constructor
  SensorDeviceConfigurationUpdateVisitor(SensorDeviceConfigurationChangeEvent update, Context context)
          Constructor
 
Method Summary
private  Context getContext()
          Getter for the context
 SensorDeviceConfigurationChangeEvent getUpdate()
          Getter for the configuration update
private  void setContext(Context context)
          Setter for the context
private  void setUpdate(SensorDeviceConfigurationChangeEvent update)
          Setter for the configuration update
 boolean visit(SensorDevice device)
          Method for device visitation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

update

SensorDeviceConfigurationChangeEvent update
the configuration update


context

Context context
The application context

Constructor Detail

SensorDeviceConfigurationUpdateVisitor

private SensorDeviceConfigurationUpdateVisitor()
Constructor


SensorDeviceConfigurationUpdateVisitor

public SensorDeviceConfigurationUpdateVisitor(SensorDeviceConfigurationChangeEvent update,
                                              Context context)
Constructor

Parameters:
update - the configuration update
context - the application context
Method Detail

visit

public boolean visit(SensorDevice device)
Description copied from interface: SensorDeviceVisitor
Method for device visitation.

Specified by:
visit in interface SensorDeviceVisitor
Parameters:
device - the device to visit
Returns:
true if visitor want's to continue visiting device, false otherwise

getUpdate

public SensorDeviceConfigurationChangeEvent getUpdate()
Getter for the configuration update

Returns:
the configuration update for the device

setUpdate

private void setUpdate(SensorDeviceConfigurationChangeEvent update)
Setter for the configuration update

Parameters:
update - the configuration update to set

getContext

private Context getContext()
Getter for the context

Returns:
the context

setContext

private void setContext(Context context)
Setter for the context

Parameters:
context - the context to set