public class UtilPublisher extends DefaultContextPublisher
publisher = new UtilPublisher(context, DEVICE_INSTANCE_URI,
ContextProviderType.controller,
new HeaterActuator(DEVICE_INSTANCE_URI),
HeaterActuator.PROP_STATUS,
TypeMapper.getDatatypeURI(Boolean.class));
busResourceURI, owner, theBus
Constructor and Description |
---|
UtilPublisher(ModuleContext context,
String uri)
Create a simple gauge Context Publisher which provided events can
be of any type and is identified with the given URI.
|
UtilPublisher(ModuleContext context,
String uri,
ContextProviderType type)
Create a simple Context Publisher of the given type which provided events
can be of any type and is identified with the given URI.
|
UtilPublisher(ModuleContext context,
String uri,
ContextProviderType type,
ContextEventPattern[] pattern)
Create a simple Context Publisher of the given type which provided events
are described by a pattern and is identified with the given URI.
|
UtilPublisher(ModuleContext context,
String uri,
ContextProviderType type,
ManagedIndividual sub,
String predicate,
String objTypeURI)
Create a simple Context Publisher of the given type which provided events
are described by the arguments and is identified with the given URI.
|
UtilPublisher(ModuleContext context,
String uri,
ContextProviderType type,
String subjTypeURI,
String predicate,
String objTypeURI)
Create a simple Context Publisher of the given type which provided events
are described by the arguments and is identified with the given URI.
|
communicationChannelBroken
busDyingOut, getMyID, publish
close, getComment, getLabel, getType, getURI, setComment, setLabel
public UtilPublisher(ModuleContext context, String uri)
context
- The universAAL module context.uri
- The URI that identifies the Context Provider.public UtilPublisher(ModuleContext context, String uri, ContextProviderType type)
context
- The universAAL module context.uri
- The URI that identifies the Context Provider.type
- The type of Context Provider, one of Gauge, Controller or
Reasoner.public UtilPublisher(ModuleContext context, String uri, ContextProviderType type, ContextEventPattern[] pattern)
context
- The universAAL module context.uri
- The URI that identifies the Context Provider.type
- The type of Context Provider, one of Gauge, Controller or
Reasoner.pattern
- Array of Patterns describing the provided events, as normally
used in the native API.public UtilPublisher(ModuleContext context, String uri, ContextProviderType type, String subjTypeURI, String predicate, String objTypeURI)
context
- The universAAL module context.uri
- The URI that identifies the Context Provider.type
- The type of Context Provider, one of Gauge, Controller or
Reasoner.subjTypeURI
- The type URI that the provided events subject must have. Null
for any.predicate
- The exact predicate that the provided events must equal. Null
for any.objTypeURI
- The type URI that the provided events object must have. Null
for any.public UtilPublisher(ModuleContext context, String uri, ContextProviderType type, ManagedIndividual sub, String predicate, String objTypeURI)
context
- The universAAL module context.uri
- The URI that identifies the Context Provider.type
- The type of Context Provider, one of Gauge, Controller or
Reasoner.sub
- The exact instance that the provided events subject must
equal. Null for any.predicate
- The exact predicate that the provided events must equal. Null
for any.objTypeURI
- The type URI that the provided events object must have. Null
for any.Copyright © 2018 universAAL Consortium. All rights reserved.