net.sourceforge.apphere
Class Pan
java.lang.Object
net.sourceforge.apphere.Pan
- public class Pan
- extends java.lang.Object
- Author:
- Dewi
Chimera
University of Essex
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Pan
public Pan(User owner)
Pan
public Pan(PanValue val)
throws AppHereException
getId
public int getId()
- Returns:
getName
public java.lang.String getName()
- Returns:
getOwner
public User getOwner()
- Returns:
setValue
public void setValue(PanValue val)
throws AppHereException
- Throws:
AppHereException
setId
public void setId(int id)
- Parameters:
id
- PAN ID
setName
public void setName(java.lang.String name)
- Parameters:
name
- of PAN
setDevices
public void setDevices(DeviceMap map)
- Parameters:
map
- Devices in PAN
setOwner
public void setOwner(User user)
- Parameters:
user
- owner of PAN
addDevice
public void addDevice(Device dev)
- adds device to this PAN
- Parameters:
dev
-
removeDevice
public void removeDevice(Device dev)
getDevices
public java.util.Collection getDevices()
- Returns all the devices in this location
clearDevices
public void clearDevices()
appendXml
public void appendXml(org.w3c.dom.Element environmentsEl)
- Method appendXml.
- Parameters:
environmentsEl
- Element to append environment details
getValue
public PanValue getValue()
copyValueIn
public void copyValueIn(PanValue val)
throws AppHereException
- Throws:
AppHereException
clonePan
public Pan clonePan()
- Returns:
- a separate exact copy of this Location