com.connecterra.ale.alevent.impl
Class EngineALEPCFactory

java.lang.Object
  extended bycom.connecterra.ale.alevent.impl.EngineALEPCFactory
All Implemented Interfaces:
ALEPCFactory

public class EngineALEPCFactory
extends java.lang.Object
implements ALEPCFactory


Method Summary
 EngineAccessReport createAccessReport(java.lang.String name)
           
 AccessSpec createAccessSpec(java.lang.String name)
          Create a new empty AccessSpec instance containing no OpSpecs.
 DataSpec createEPCCacheDataSpec(java.lang.String epcCacheName)
          Create a new DataSpec that gets its data from an EPC Cache.
 EPCCacheSpec createEPCCacheSpec()
          Create a new EPCCacheSpec instance.
 EPCPatterns createEPCPatterns()
          Create a new EPCPatterns instance.
 KillOpSpec createKillOpSpec(DataSpec dataSpec)
          Create a new KillOpSpec.
 DataSpec createLiteralDataSpec(java.net.URI value)
          Create a new DataSpec that gets its data from a URI.
 LockOpSpec createLockOpSpec(java.net.URI mask, java.net.URI value)
          Create a new LockOpSpec.
 DataSpec createParamDataSpec(java.lang.String paramName)
          Create a new DataSpec that gets its data from the parameter map in the ALEPC poll() or immediate() call.
 PasswordOpSpec createPasswordOpSpec(DataSpec dataSpec)
          Create a new PasswordOpSpec.
 PCSpec createPCSpec()
          Create a new PCSpec instance.
 PCSubscriptionControls createPCSubscriptionControls()
          Create a new PCSubscriptionControls instance, with all fields initialized to zero, which requests that notification failures never cause a subscription to be unsubscribed.
 PCSubscriptionControls createPCSubscriptionControls(int count, long interval)
          Create a new PCSubscriptionControls instance with the specified count and interval in milliseconds.
 ReadOpSpec createReadOpSpec(java.net.URI field)
          Create a new ReadOpSpec.
 WriteOpSpec createWriteOpSpec(java.net.URI field, DataSpec dataSpec)
          Create a new WriteOpSpec.
static AccessSpec createWriteTagAccessSpec(java.lang.String name, com.connecterra.ale.reader.access.DeviceTagReport tag)
           
static AccessSpec createWriteTagAccessSpec(java.lang.String name, java.net.URI tag)
           
static EngineALEPCFactory getInstance()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static EngineALEPCFactory getInstance()

createPCSpec

public PCSpec createPCSpec()
Description copied from interface: ALEPCFactory
Create a new PCSpec instance. The returned instance has no cache name, empty list of logical reader names, no start or stop trigger, and maxTrials and maxDuration set to 0 (no limit).

Specified by:
createPCSpec in interface ALEPCFactory

createEPCCacheSpec

public EPCCacheSpec createEPCCacheSpec()
Description copied from interface: ALEPCFactory
Create a new EPCCacheSpec instance. The returned instance has no application data, 0 threshold, and false includeContent.

Specified by:
createEPCCacheSpec in interface ALEPCFactory

createEPCPatterns

public EPCPatterns createEPCPatterns()
Description copied from interface: ALEPCFactory
Create a new EPCPatterns instance. The returned instance is empty.

Specified by:
createEPCPatterns in interface ALEPCFactory

createPCSubscriptionControls

public PCSubscriptionControls createPCSubscriptionControls()
Description copied from interface: ALEPCFactory
Create a new PCSubscriptionControls instance, with all fields initialized to zero, which requests that notification failures never cause a subscription to be unsubscribed.

Specified by:
createPCSubscriptionControls in interface ALEPCFactory

createPCSubscriptionControls

public PCSubscriptionControls createPCSubscriptionControls(int count,
                                                           long interval)
Description copied from interface: ALEPCFactory
Create a new PCSubscriptionControls instance with the specified count and interval in milliseconds.

Specified by:
createPCSubscriptionControls in interface ALEPCFactory

createAccessSpec

public AccessSpec createAccessSpec(java.lang.String name)
Description copied from interface: ALEPCFactory
Create a new empty AccessSpec instance containing no OpSpecs.

Specified by:
createAccessSpec in interface ALEPCFactory
Parameters:
name - the name of the new AccessSpec

createEPCCacheDataSpec

public DataSpec createEPCCacheDataSpec(java.lang.String epcCacheName)
Description copied from interface: ALEPCFactory
Create a new DataSpec that gets its data from an EPC Cache.

Specified by:
createEPCCacheDataSpec in interface ALEPCFactory
Parameters:
epcCacheName - The name of the EPC Cache to get data from.

createLiteralDataSpec

public DataSpec createLiteralDataSpec(java.net.URI value)
Description copied from interface: ALEPCFactory
Create a new DataSpec that gets its data from a URI.

Specified by:
createLiteralDataSpec in interface ALEPCFactory
Parameters:
value - The URI representing the data to use as the contents.

createParamDataSpec

public DataSpec createParamDataSpec(java.lang.String paramName)
Description copied from interface: ALEPCFactory
Create a new DataSpec that gets its data from the parameter map in the ALEPC poll() or immediate() call.

Specified by:
createParamDataSpec in interface ALEPCFactory
Parameters:
paramName - the name of the parameter to look up in that map.

createReadOpSpec

public ReadOpSpec createReadOpSpec(java.net.URI field)
Description copied from interface: ALEPCFactory
Create a new ReadOpSpec.

Specified by:
createReadOpSpec in interface ALEPCFactory
Parameters:
field - the field URI to read

createKillOpSpec

public KillOpSpec createKillOpSpec(DataSpec dataSpec)
Description copied from interface: ALEPCFactory
Create a new KillOpSpec.

Specified by:
createKillOpSpec in interface ALEPCFactory
Parameters:
dataSpec - the DataSpec that the OpSpec will use to get the kill password

createLockOpSpec

public LockOpSpec createLockOpSpec(java.net.URI mask,
                                   java.net.URI value)
Description copied from interface: ALEPCFactory
Create a new LockOpSpec.

Specified by:
createLockOpSpec in interface ALEPCFactory
Parameters:
mask - The URI representing the data to use as the mask value in the request.
value - The URI representing the data to use as the value in the request.

createPasswordOpSpec

public PasswordOpSpec createPasswordOpSpec(DataSpec dataSpec)
Description copied from interface: ALEPCFactory
Create a new PasswordOpSpec.

Specified by:
createPasswordOpSpec in interface ALEPCFactory
Parameters:
dataSpec - the DataSpec that the OpSpec will use to get the password

createWriteTagAccessSpec

public static AccessSpec createWriteTagAccessSpec(java.lang.String name,
                                                  com.connecterra.ale.reader.access.DeviceTagReport tag)

createWriteTagAccessSpec

public static AccessSpec createWriteTagAccessSpec(java.lang.String name,
                                                  java.net.URI tag)

createWriteOpSpec

public WriteOpSpec createWriteOpSpec(java.net.URI field,
                                     DataSpec dataSpec)
Description copied from interface: ALEPCFactory
Create a new WriteOpSpec.

Specified by:
createWriteOpSpec in interface ALEPCFactory
Parameters:
field - the field URI to be written
dataSpec - the DataSpec that the OpSpec will use to get the contents to write

createAccessReport

public EngineAccessReport createAccessReport(java.lang.String name)