net.sourceforge.apphere
Class Pan

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

public class Pan
extends java.lang.Object

Author:
Dewi Chimera University of Essex

Constructor Summary
Pan(PanValue val)
           
Pan(User owner)
           
 
Method Summary
 void addDevice(Device dev)
          adds device to this PAN
 void appendXml(org.w3c.dom.Element environmentsEl)
          Method appendXml.
 void clearDevices()
           
 Pan clonePan()
           
 void copyValueIn(PanValue val)
           
 java.util.Collection getDevices()
          Returns all the devices in this location
 int getId()
           
 java.lang.String getName()
           
 User getOwner()
           
 PanValue getValue()
           
 void removeDevice(Device dev)
           
 void setDevices(DeviceMap map)
           
 void setId(int id)
           
 void setName(java.lang.String name)
           
 void setOwner(User user)
           
 void setValue(PanValue val)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Pan

public Pan(User owner)

Pan

public Pan(PanValue val)
    throws AppHereException
Method Detail

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