org.openmuc.sunnywebbox
Class SunnyWebboxDevice

java.lang.Object
  extended by org.openmuc.sunnywebbox.SunnyWebboxDevice

public class SunnyWebboxDevice
extends java.lang.Object


Constructor Summary
SunnyWebboxDevice(DeviceURI url)
           
SunnyWebboxDevice(java.lang.String comPort)
           
 
Method Summary
 java.util.List<ChannelInformation> getChannelsForDevice(java.lang.String device)
           
 java.util.List<java.lang.String> getListOfConnectedDevices()
          Returns a List of Connected Devices.
 java.util.Vector<Measurement> getMeasurements(java.util.List<ChannelIdentifier> channels)
          Returns
 DeviceURI getUrl()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SunnyWebboxDevice

public SunnyWebboxDevice(DeviceURI url)
                  throws java.net.UnknownHostException,
                         java.net.SocketException
Throws:
java.net.UnknownHostException
java.net.SocketException

SunnyWebboxDevice

public SunnyWebboxDevice(java.lang.String comPort)
                  throws java.net.UnknownHostException,
                         java.net.SocketException
Throws:
java.net.UnknownHostException
java.net.SocketException
Method Detail

getUrl

public DeviceURI getUrl()

getListOfConnectedDevices

public java.util.List<java.lang.String> getListOfConnectedDevices()
                                                           throws java.io.IOException,
                                                                  org.json.simple.parser.ParseException
Returns a List of Connected Devices.

Returns:
Throws:
java.io.IOException
org.json.simple.parser.ParseException

getMeasurements

public java.util.Vector<Measurement> getMeasurements(java.util.List<ChannelIdentifier> channels)
                                              throws MalformedObjectLocatorException,
                                                     java.io.IOException
Returns

Parameters:
channels -
Returns:
Throws:
MalformedObjectLocatorException
java.io.IOException
org.json.simple.parser.ParseException

getChannelsForDevice

public java.util.List<ChannelInformation> getChannelsForDevice(java.lang.String device)
                                                        throws java.io.IOException,
                                                               org.json.simple.parser.ParseException
Throws:
java.io.IOException
org.json.simple.parser.ParseException