001/* 002 * $HeadURL: $ 003 * $Revision: $ 004 * $Date: $ 005 * $Author: $ 006 */ 007/* 008 * ----------------------------------------------------------------- 009 * NodeChangeMessage.java 010 * -------------- 011 * 012 * Copyright (C) 2013 WebARTS Design, North Vancouver Canada 013 * http://www.webarts.ca 014 * 015 * This program is free software; you can redistribute it and/or modify 016 * it under the terms of Version 2 of the GNU General Public License as 017 * published by the Free Software Foundation. 018 * 019 * This program is distributed in the hope that it will be useful, 020 * but WITHOUT ANY WARRANTY; without even the implied warranty of 021 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 022 * GNU General Public License for more details. 023 * 024 * You should have received a copy of the GNU General Public License 025 * along with this program; if not, write to the Free Software 026 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 027 * ----------------------------------------------------------------- 028 */ 029package ca.bc.webarts.tools.isy; 030 031import com.universaldevices.device.model.UDControl; 032import com.universaldevices.device.model.UDNode; 033 034/** 035 * This class wraps the components of a ISY node change message 036 * 037 */ 038public class NodeChangeMessage 039{ 040 UDControl control_= null; 041 Object value_ = null; 042 UDNode node_ = null; 043 044 045 public NodeChangeMessage(UDNode node, UDControl control, Object value) 046 { 047 control_=control; 048 node_=node; 049 value_=value; 050 } 051 052 053 /** Returns the value of node_. */ 054 public UDNode getNode() { return node_; } 055 056 /** 057 * Sets the value of node_. 058 * @param node The value to assign node_. 059 */ 060 public void setNode(UDNode node) {this.node_ = node;} 061 062 063 /** Returns the value of control_. */ 064 public UDControl getControl() { return control_; } 065 066 /** 067 * Sets the value of control_. 068 * @param control The value to assign control_. 069 */ 070 public void setControl(UDControl control) {this.control_ = control;} 071 072 073 /** Returns the value of value_. */ 074 public Object getValue() {return value_; } 075 076 /** 077 * Sets the value of value_. 078 * @param value The value to assign value_. 079 */ 080 public void setValue(Object value) {this.value_ = value;} 081 082 083}