net.sourceforge.apphere
Class Device

java.lang.Object
  extended bynet.sourceforge.apphere.Device

public class Device
extends java.lang.Object


Constructor Summary
Device(DeviceValue val)
           
Device(User owner)
           
 
Method Summary
 void appendXml(org.w3c.dom.Element environmentEl)
          Method appendXml.
 Device cloneDevice()
           
 void copyValueIn(DeviceValue val)
           
 java.lang.String getDeviceType()
           
 int getId()
           
 java.lang.String getIpAddress()
           
 java.lang.String getName()
           
 User getOwner()
           
 DeviceStatus getStatus()
           
 java.lang.String getType()
           
 DeviceValue getValue()
           
 void setId(int device_id)
           
 void setIpAddress(java.lang.String string)
           
 void setName(java.lang.String string)
           
 void setStatus(DeviceStatus status)
           
 void setStatus(int statusNum)
           
 void setType(java.lang.String string)
           
 void setValue(DeviceValue val)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Device

public Device(User owner)

Device

public Device(DeviceValue val)
       throws AppHereException
Method Detail

getValue

public DeviceValue getValue()

setId

public void setId(int device_id)

getName

public java.lang.String getName()

getIpAddress

public java.lang.String getIpAddress()

getDeviceType

public java.lang.String getDeviceType()

getId

public int getId()

appendXml

public void appendXml(org.w3c.dom.Element environmentEl)
Method appendXml.

Parameters:
environmentEl - xml element to append device info

getType

public java.lang.String getType()
Returns:

setIpAddress

public void setIpAddress(java.lang.String string)
Parameters:
string -

setName

public void setName(java.lang.String string)
Parameters:
string -

setType

public void setType(java.lang.String string)
Parameters:
string -

cloneDevice

public Device cloneDevice()

copyValueIn

public void copyValueIn(DeviceValue val)
                 throws AppHereException
Parameters:
val -
Throws:
AppHereException

setValue

public void setValue(DeviceValue val)
              throws AppHereException
Throws:
AppHereException

getOwner

public User getOwner()
Returns:

getStatus

public DeviceStatus getStatus()
Returns:

setStatus

public void setStatus(DeviceStatus status)
Parameters:
status -

setStatus

public void setStatus(int statusNum)

toString

public java.lang.String toString()