A B C D E G I L P R S U 

A

Action - Annotation Type in com.lhings.java.annotations
This annotation is used to tell the Lhings Java library which methods implement actions, in the Lhings sense of action.
ActionExecutionException - Exception in com.lhings.java.exception
 
ActionExecutionException() - Constructor for exception com.lhings.java.exception.ActionExecutionException
 
ActionExecutionException(Exception) - Constructor for exception com.lhings.java.exception.ActionExecutionException
 
ActionExecutionException(String) - Constructor for exception com.lhings.java.exception.ActionExecutionException
 
apiKey() - Method in class com.lhings.java.LhingsDevice
Returns the Api-Key the device is using to connect with Lhings.

B

BadRequestException - Exception in com.lhings.java.exception
 
BadRequestException(String) - Constructor for exception com.lhings.java.exception.BadRequestException
 

C

com.lhings.java - package com.lhings.java
 
com.lhings.java.annotations - package com.lhings.java.annotations
 
com.lhings.java.exception - package com.lhings.java.exception
 

D

DeviceDoesNotExistException - Exception in com.lhings.java.exception
 
DeviceDoesNotExistException(String) - Constructor for exception com.lhings.java.exception.DeviceDoesNotExistException
 
DeviceInfo - Annotation Type in com.lhings.java.annotations
This annotation is used to provide generic meta information about the device, like its manufacturer, model, serial number, and type of device.
DeviceUnreachableException - Exception in com.lhings.java.exception
 
DeviceUnreachableException() - Constructor for exception com.lhings.java.exception.DeviceUnreachableException
 
DeviceUnreachableException(Exception) - Constructor for exception com.lhings.java.exception.DeviceUnreachableException
 
DeviceUnreachableException(String) - Constructor for exception com.lhings.java.exception.DeviceUnreachableException
 

E

Event - Annotation Type in com.lhings.java.annotations
This annotation is used to define the events of your device.

G

getDevices() - Method in class com.lhings.java.LhingsDevice
This method returns a list of all the other devices that belong to the same account as the calling device.
getLoopFrequency() - Method in class com.lhings.java.LhingsDevice
Returns the number of times per second the method loop() is executed by the SDK.
getManufacturer() - Method in class com.lhings.java.LhingsDevice
Override this method if you want to specify your own manufacturer.
getModelName() - Method in class com.lhings.java.LhingsDevice
Override this method if you want to specify your own model name.
getName() - Method in class com.lhings.java.LhingsDevice
Returns the name of the device.
getPort() - Method in class com.lhings.java.LhingsDevice
Used to retrieve the port used by this device to communicate with Lhings.
getSerialNumber() - Method in class com.lhings.java.LhingsDevice
Override this method if you want to specify your own serial number Default serial number is "000001"
getStatus(String) - Method in class com.lhings.java.LhingsDevice
Retrieves the status of the given device.
getType() - Method in class com.lhings.java.LhingsDevice
Override this method if you want to specify your own device type Default device type is "javavirtualdevice"
getUsername() - Method in class com.lhings.java.LhingsDevice
Returns the username of the account to which the device belongs.
getVersion() - Method in class com.lhings.java.LhingsDevice
Override this method if you want to specify your own device version Default device version is "1"

I

InitializationException - Exception in com.lhings.java.exception
 
InitializationException() - Constructor for exception com.lhings.java.exception.InitializationException
 
InitializationException(String) - Constructor for exception com.lhings.java.exception.InitializationException
 
isDeviceConnected() - Method in class com.lhings.java.LhingsDevice
Returns true if the device was successful in setting up a permanent communication channel with the Lhings server.
isLogged() - Method in class com.lhings.java.LhingsDevice
Returns true if the username and password combination provided was correct and the device was able to start session in Lhings.

L

LhingsDevice - Class in com.lhings.java
This abstract class is the base class for all the Java devices.
LhingsDevice(String, String, String) - Constructor for class com.lhings.java.LhingsDevice
Creates a new device in Lhings associated to the account with the given username and password.
LhingsDevice(String, String, int, String) - Constructor for class com.lhings.java.LhingsDevice
Creates a new device in Lhings associated to the account with the given username and password.
LhingsException - Exception in com.lhings.java.exception
Exception to be thrown in case of any error related to the java SDK.
LhingsException(String) - Constructor for exception com.lhings.java.exception.LhingsException
 
LhingsException(Exception) - Constructor for exception com.lhings.java.exception.LhingsException
 
LhingsException() - Constructor for exception com.lhings.java.exception.LhingsException
 
log - Static variable in class com.lhings.java.LhingsDevice
 
logout() - Method in class com.lhings.java.LhingsDevice
This method is called to close the session with lhings.
loop() - Method in class com.lhings.java.LhingsDevice
Implementations must override this method and put in it the device logic.

P

Payload - Annotation Type in com.lhings.java.annotations
@Payload annotation is used to specify that the parameter of a method annotated with @Action should carry the raw payload of the event.

R

requestAction(String, String, Map<String, Object>) - Method in class com.lhings.java.LhingsDevice
Request another device to perform one of its actions.Both the action name and argument names must have been declared by the other device in its descriptor file.
run() - Method in class com.lhings.java.LhingsDevice
 

S

sendEvent(String) - Method in class com.lhings.java.LhingsDevice
Sends an event without payload to Lhings.
sendEvent(String, String) - Method in class com.lhings.java.LhingsDevice
Sends an event with payload to Lhings.
setLoopFrequency(float) - Method in class com.lhings.java.LhingsDevice
Sets the number of times per second the method loop() is executed by the SDK.
setup() - Method in class com.lhings.java.LhingsDevice
Implementation must override this method and put in it all the initialization code required by device.
start() - Method in class com.lhings.java.LhingsDevice
Start the device.
StatusComponent - Annotation Type in com.lhings.java.annotations
@StatusComponent annotation is used to specify which fields of a LhingsDevice instance are status components of the device.
stop() - Method in class com.lhings.java.LhingsDevice
Stops the device
storeStatus() - Method in class com.lhings.java.LhingsDevice
Stores the value of all the status components of this device in Lhings.

U

UnauthorizedException - Exception in com.lhings.java.exception
 
UnauthorizedException(String) - Constructor for exception com.lhings.java.exception.UnauthorizedException
 
uuid() - Method in class com.lhings.java.LhingsDevice
Returns the unique UUID Lhings assigned to this device.
uuids - Static variable in class com.lhings.java.LhingsDevice
 
A B C D E G I L P R S U 

Copyright © 2014. All rights reserved.