2010-01-22 1.2.0

org.eclipse.soda.dk.arcom.io.gpio.profile
Class ArcomIoGpioProfile

java.lang.Object
  extended by GpioProfile
      extended by org.eclipse.soda.dk.arcom.io.gpio.profile.ArcomIoGpioProfile
All Implemented Interfaces:
ArcomIoGpioProfileService

public class ArcomIoGpioProfile
extends GpioProfile
implements ArcomIoGpioProfileService

Arcom Io Profile. The ArcomIoGpioProfile class implements the ArcomIoGpioProfileService and provides the controls for the profile.

The list of exported services:

Since:
1.0
Version:
1.2.0
See Also:
ArcomIoGpioProfileService,

See the following specification(s) for more details:

Title: EPCglobal Low Level Reader Protocol (LLRP)
URL: http://www.epcglobalinc.org/standards/llrp
Version: 1.0.1
Date: August 13, 2007
Vendor: EPCglobal
Comment: Ratified

Title: EPCglobal Application Level Events (ALE) Specification
URL: http://www.epcglobalinc.org/standards/ale/
Version: 1.1
Date: February 27, 2008
Vendor: EPCglobal
Comment: Ratified

Field Summary
protected static byte ALL_OFF_OUTPUT
          Define the all off output (byte) constant.
protected static byte ALL_ON_OUTPUT
          Define the all on output (byte) constant.
protected  CommandService arcomIoDeviceServiceGetInputRequest
          Defines the GetInputRequest c reference.
protected  SignalService arcomIoDeviceServiceInputReport
          Defines the InputReport signalref.
protected  CommandService arcomIoDeviceServiceSetAllOutputs
          Defines the SetAllOutputs c reference.
static java.lang.String CLASS_NAME
          Defines the full class name.
static int INPUT_COUNT
          Define the input count (int) constant.
static int OUTPUT_COUNT
          Define the output count (int) constant.
 
Fields inherited from interface org.eclipse.soda.dk.arcom.io.gpio.profile.service.ArcomIoGpioProfileService
ALL_COMMANDS, ALL_MEASUREMENTS, ALL_SIGNALS, ArcomIoGpioProfile, Capabilities, CAPABILITIES_ERROR_EXTERNAL_KEY, CAPABILITIES_EXTERNAL_KEY, CAPABILITIES_GET_EXTERNAL_KEY, Configuration, CONFIGURATION_ERROR_EXTERNAL_KEY, CONFIGURATION_EXTERNAL_KEY, CONFIGURATION_GET_EXTERNAL_KEY, FACTORY_SERVICE_NAME, MANAGED_SERVICE_NAME, Metrics, METRICS_ERROR_EXTERNAL_KEY, METRICS_EXTERNAL_KEY, METRICS_GET_EXTERNAL_KEY, SERVICE_DESCRIPTION, SERVICE_NAME, Status, STATUS_ERROR_EXTERNAL_KEY, STATUS_EXTERNAL_KEY, STATUS_GET_EXTERNAL_KEY
 
Constructor Summary
ArcomIoGpioProfile()
          Constructs a new instance of the ArcomIoGpioProfile class.
 
Method Summary
 void activate()
          Activate.
protected  java.util.Map createMapFromByte(byte data, java.lang.String[] keys, int count)
          Create map from byte with the specified data, keys and count parameters and return the Map result.
protected  byte createOutputByteFromMap(java.util.Map states, java.lang.String[] keys, int count)
          Create output byte from map with the specified states, keys and count parameters and return the byte result.
 AdapterService getAdapter()
          Gets the get adapter value.
 DeviceService getDefaultDevice()
          Gets the default DeviceService.
 java.lang.String getDefaultKey()
          Gets the default key of the profile.
protected  long getInputCountValue()
          Gets the input count value (long) value.
protected  long getOutputCountValue()
          Gets the output count value (long) value.
 boolean isAdapterNeeded()
          Is adapter needed.
 boolean isDeviceNeeded()
          Is device needed.
 void setAdapter(AdapterService adapter)
          Set adapter.
 void setDevice(DeviceService device)
          Set device.
protected  void setOutputPins(byte value)
          Sets the output pins value.
 void setup()
           
 void signalOccurred(SignalService source, java.lang.Object timestamp, java.lang.Object data)
          Signal occurred.
protected  void turnOffAllOutputs()
          Turn off all outputs.
protected  void turnOnAllOutputs()
          Turn on all outputs.
protected  void updateOutputs(java.util.Map fullState, java.util.Map individualRequest)
          Update outputs with the specified full state and individual request parameters.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLASS_NAME

public static final java.lang.String CLASS_NAME
Defines the full class name.

Since:
1.0
See Also:
Constant Field Values

arcomIoDeviceServiceGetInputRequest

protected CommandService arcomIoDeviceServiceGetInputRequest
Defines the GetInputRequest c reference.

Since:
1.0

arcomIoDeviceServiceSetAllOutputs

protected CommandService arcomIoDeviceServiceSetAllOutputs
Defines the SetAllOutputs c reference.

Since:
1.0

arcomIoDeviceServiceInputReport

protected SignalService arcomIoDeviceServiceInputReport
Defines the InputReport signalref.

Since:
1.0

ALL_OFF_OUTPUT

protected static final byte ALL_OFF_OUTPUT
Define the all off output (byte) constant.

See Also:
Constant Field Values

ALL_ON_OUTPUT

protected static final byte ALL_ON_OUTPUT
Define the all on output (byte) constant.

See Also:
Constant Field Values

OUTPUT_COUNT

public static final int OUTPUT_COUNT
Define the output count (int) constant.

See Also:
Constant Field Values

INPUT_COUNT

public static final int INPUT_COUNT
Define the input count (int) constant.

See Also:
Constant Field Values
Constructor Detail

ArcomIoGpioProfile

public ArcomIoGpioProfile()
Constructs a new instance of the ArcomIoGpioProfile class.

Since:
1.0
Method Detail

setDevice

public void setDevice(DeviceService device)
Set device.

Parameters:
device - device.
Since:
1.0

signalOccurred

public void signalOccurred(SignalService source,
                           java.lang.Object timestamp,
                           java.lang.Object data)
Signal occurred.

Parameters:
source - source.
timestamp - time stamp.
data - data.
Since:
1.0

getDefaultKey

public java.lang.String getDefaultKey()
Gets the default key of the profile.

Returns:
String The default key
Since:
1.0

getDefaultDevice

public DeviceService getDefaultDevice()
Gets the default DeviceService.

Returns:
DeviceService The default DeviceService.
Since:
1.0

isDeviceNeeded

public boolean isDeviceNeeded()
Is device needed.

Returns:
The results of this method.
Since:
1.0

setup

public void setup()
Since:
1.2
See Also:
org.eclipse.soda.dk.device.Container#setup()

getAdapter

public AdapterService getAdapter()
Gets the get adapter value.

Returns:
The adapter value.
Since:
1.1

setAdapter

public void setAdapter(AdapterService adapter)
Set adapter.

Parameters:
adapter - adapter.
Since:
1.1

isAdapterNeeded

public boolean isAdapterNeeded()
Is adapter needed.

Returns:
The results of this method.
Since:
1.1

activate

public void activate()
Activate.


createMapFromByte

protected java.util.Map createMapFromByte(byte data,
                                          java.lang.String[] keys,
                                          int count)
Create map from byte with the specified data, keys and count parameters and return the Map result.

Parameters:
data - The data (byte) parameter.
keys - The keys (String[]) parameter.
count - The count (int) parameter.
Returns:
Results of the create map from byte (Map) value.

createOutputByteFromMap

protected byte createOutputByteFromMap(java.util.Map states,
                                       java.lang.String[] keys,
                                       int count)
Create output byte from map with the specified states, keys and count parameters and return the byte result.

Parameters:
states - The states (Map) parameter.
keys - The keys (String[]) parameter.
count - The count (int) parameter.
Returns:
Results of the create output byte from map (byte) value.

getInputCountValue

protected long getInputCountValue()
Gets the input count value (long) value.

Returns:
The input count value (long) value.

getOutputCountValue

protected long getOutputCountValue()
Gets the output count value (long) value.

Returns:
The output count value (long) value.

setOutputPins

protected void setOutputPins(byte value)
Sets the output pins value.

Parameters:
value - The value (byte) parameter.

turnOffAllOutputs

protected void turnOffAllOutputs()
Turn off all outputs.


turnOnAllOutputs

protected void turnOnAllOutputs()
Turn on all outputs.


updateOutputs

protected void updateOutputs(java.util.Map fullState,
                             java.util.Map individualRequest)
Update outputs with the specified full state and individual request parameters.

Parameters:
fullState - The full state (Map) parameter.
individualRequest - The individual request (Map) parameter.
See Also:
turnOffAllOutputs(), turnOnAllOutputs()

2010-01-22 1.2.0

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