com.universaldevices.device.model
Class UDNodeProperties

java.lang.Object
  extended by com.universaldevices.device.model.UDNodeProperties

public class UDNodeProperties
extends java.lang.Object

UDNodeProperties represents the user defined properties for a given node

The DIML format for properties is as follows





Author:
UD Architect

Constructor Summary
UDNodeProperties(java.lang.String diml)
          Constructor
UDNodeProperties(java.lang.String location, java.lang.String description, boolean isLoad)
          Constructor
 
Method Summary
 java.lang.String getDescription()
           
 java.lang.StringBuffer getDIML()
           
 java.lang.String getLocation()
           
 boolean isLoad()
           
 void load(java.lang.String diml)
          Loads this instance of UDNodeProperties based on the given DIML
 void setDescription(java.lang.String description)
           
 void setLoad(boolean isLoad)
           
 void setLocation(java.lang.String location)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UDNodeProperties

public UDNodeProperties(java.lang.String diml)
Constructor

Creates an instance of this class based on the given DIML

Parameters:
diml - - the DIML describing these properties for the given node

UDNodeProperties

public UDNodeProperties(java.lang.String location,
                        java.lang.String description,
                        boolean isLoad)
Constructor

Creates an instance of this class based on the given location, description,
and isLoad

Parameters:
location - - the location of the node
description - - any exra notes
isLoad - - whether or not this node is the representation of a device which is
physically conntect to the load
Method Detail

load

public void load(java.lang.String diml)
Loads this instance of UDNodeProperties based on the given DIML

Parameters:
diml - - the DIML representation of UDNodeProperties

getDIML

public java.lang.StringBuffer getDIML()

getDescription

public java.lang.String getDescription()
Returns:
the description

setDescription

public void setDescription(java.lang.String description)
Parameters:
description - the description to set

isLoad

public boolean isLoad()
Returns:
the isLoad

setLoad

public void setLoad(boolean isLoad)
Parameters:
isLoad - the isLoad to set

getLocation

public java.lang.String getLocation()
Returns:
the location

setLocation

public void setLocation(java.lang.String location)
Parameters:
location - the location to set