public interface IThingManager
Thing
objects. Every node implicitly has one ThingManager
instance. With an
instance you can manage your Thing
's easily. Simply you can get instance by calling; myNode ->
your Node
object. ThingManager myThingManager = myNode.getThingManager();Modifier and Type | Method and Description |
---|---|
java.util.List<Thing> |
getEveryThing()
Get all
Thing 's managed by this manager. |
Thing |
getThingByID(java.lang.String thingID)
Get
Thing object from ID. |
java.util.List<Thing> |
getThingByName(java.lang.String thingName)
Get
Thing object(s) with specified name. |
boolean |
isThingRegistered(Thing thing)
Checks
Thing object is registered before or not. |
boolean |
registerThing(Thing thing)
|
boolean |
sendData(Thing thing)
Send
ThingData to cloud. |
boolean |
unregisterThing(java.lang.String thingID)
|
boolean |
unregisterThing(Thing thing)
|
boolean registerThing(Thing thing)
boolean unregisterThing(java.lang.String thingID)
thingID:
- ThingID string which to be unregistered.Thing
.boolean unregisterThing(Thing thing)
java.util.List<Thing> getEveryThing()
Thing
's if no object(s) as assigned that name returns
empty list.java.util.List<Thing> getThingByName(java.lang.String thingName)
Thing getThingByID(java.lang.String thingID)
boolean sendData(Thing thing)
ThingData
to cloud.thing
- : Thing
object which to be sent.