Subversion Repositories HomeAutomation

Rev

Blame | Last modification | View Log | SVN | RSS feed

  1. /*
  2.  * File created by Jimmy
  3.  * at 2003-sep-15 19:07:18
  4.  */
  5. package Macbeth.Modules.modGenRoomControl;
  6.  
  7. import Macbeth.Utilities.UByte;
  8. import java.io.*;
  9.  
  10. /**
  11.  * A representation of a room object (mostly lamps). Each
  12.  * room object has a name, a byte value and mostly a
  13.  * corresponding remote control button as well.
  14.  * @author Jimmy, arune
  15.  */
  16. public class GenRoomObject {
  17.  
  18.     public String name;
  19.     public String address;
  20.     public UByte[] byteValue;
  21.     public String remoteButton;
  22.     public boolean displHTML;
  23.  
  24.  
  25.     /**
  26.      * Creates a new instance of RoomObject.
  27.      * @param name The name of this object.
  28.      * @param address The node-address at where this object is.
  29.      * @param byteval The byte value of this object.
  30.      * @param remotebutton The name of the remote button associated with this object.
  31.      */
  32.     public GenRoomObject(String name, String address, UByte[] byteval, String remotebutton, boolean displHTML) {
  33.         this.name = name;
  34.         this.address = address;
  35.         this.byteValue = byteval;
  36.         this.remoteButton = remotebutton;
  37.         this.displHTML = displHTML;
  38.     }
  39.     public GenRoomObject() {
  40.         this("", "", new UByte[0], "", false);
  41.     }
  42.  
  43. }
  44.