You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

45 lines
721 B

package com.matthewhuntington.homeautomation;
public class Action
{
protected int socket;
protected char house;
protected boolean apply_to_all_sockets;
protected int value;
public Action(char house, int value)
{
this.house=house;
this.apply_to_all_sockets=true;
this.value=value;
}
public Action(char house, int socket, int value)
{
this.house=house;
this.socket=socket;
this.apply_to_all_sockets=false;
this.value=value;
}
public int getSocket()
{
return socket;
}
public char getHouse()
{
return house;
}
public boolean getApplyToAllSockets()
{
return apply_to_all_sockets;
}
public int getValue()
{
return value;
}
}