tuwien.auto.calimero.datapoint
Class CommandDP

java.lang.Object
  extended by tuwien.auto.calimero.datapoint.Datapoint
      extended by tuwien.auto.calimero.datapoint.CommandDP

public class CommandDP
extends Datapoint

Represents a command based KNX datapoint.

Interaction of command based datapoints is done solely with events (i.e. "commands"), not telling anything about a datapoint state.


Constructor Summary
CommandDP(GroupAddress main, java.lang.String name)
          Creates a new command based datapoint with a name.
CommandDP(GroupAddress main, java.lang.String name, int mainNumber, java.lang.String dptID)
          Creates a new command based datapoint with a name, and specifies datapoint translation type.
CommandDP(XMLReader r)
          Creates a new command based datapoint from XML input.
 
Method Summary
 java.lang.String toString()
           
 
Methods inherited from class tuwien.auto.calimero.datapoint.Datapoint
create, getDPT, getMainAddress, getMainNumber, getName, getPriority, isStateBased, save, setDPT, setName, setPriority
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CommandDP

public CommandDP(GroupAddress main,
                 java.lang.String name)
Creates a new command based datapoint with a name.

Parameters:
main - the group address used to identify this datapoint
name - user defined datapoint name

CommandDP

public CommandDP(GroupAddress main,
                 java.lang.String name,
                 int mainNumber,
                 java.lang.String dptID)
Creates a new command based datapoint with a name, and specifies datapoint translation type.

Parameters:
main - the group address used to identify this datapoint
name - user defined datapoint name
mainNumber - main number of the data type used for translation of a datapoint value; if the used dptID argument unambiguously identifies a DPT translator, main number might be left 0
dptID - the datapoint type ID used for translation in a DPT translator

CommandDP

public CommandDP(XMLReader r)
          throws KNXMLException
Creates a new command based datapoint from XML input.

If the current XML element position is no start tag, the next element tag is read. The datapoint element is then expected to be the current element in the reader.

Parameters:
r - a XML reader
Throws:
KNXMLException - if the XML element is no datapoint or could not be read correctly
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class Datapoint