net.sourceforge.apphere
Class Device
java.lang.Object
net.sourceforge.apphere.Device
- public class Device
- extends java.lang.Object
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Device
public Device(User owner)
Device
public Device(DeviceValue val)
throws AppHereException
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()