示例#1
0
BEDROOM_3_WC_SOCKET = Variable('BEDROOM_3_WC_SOCKET', 0.0)
BEDROOM_3_SOCKET_1 = Variable('BEDROOM_3_SOCKET_1', 0.0)
CAM_1 = Variable('CAM_1', 0.0)
BACK_DOOR_SOCKET = Variable('BACK_DOOR_SOCKET', 0.0)
LIVING_SOCKET_1 = Variable('LIVING_SOCKET_1', 0.0)
LIVING_SOCKET_2 = Variable('LIVING_SOCKET_2', 0.0)
LIVING_SOCKET_3 = Variable('LIVING_SOCKET_3', 0.0)
WINTER_GARDEN_SWITCH_1 = Variable('WINTER_GARDEN_SWITCH_1', 0.0)
WINTER_GARDEN_SWITCH_2 = Variable('WINTER_GARDEN_SWITCH_2', 0.0)
BOILER_SWITCH = Variable('BOILER_SWITCH', 0.0)
DINING_SOCKET = Variable('DINING_SOCKET', 0.0)
COOK_SWITCH = Variable('COOK_SWITCH', 0.0)
HALL_1_SWITCH = Variable('HALL_1_SWITCH', 0.0)
BEDROOM_3_SOCKET_2 = Variable('BEDROOM_3_SOCKET_2', 0.0)
HALL_2_SWITCH = Variable('HALL_2_SWITCH', 0.0)
SHOWER_2_SWITCH = Variable('SHOWER_2_SWITCH', 0)
PODVAL_R = Variable('PODVAL_R', 0.0)
WINTER_GARDEN_S = Variable('WINTER_GARDEN_S', 0.0)
BACK_DOOR_TERM_IN_S = Variable('BACK_DOOR_TERM_IN_S', 20.0)
BEDROOM_3_WC_TERM = Variable('BEDROOM_3_WC_TERM', 20.0)
HEATING_MAIN_OUT = Variable('HEATING_MAIN_OUT', 0)
HEATING_MAIN_IN = Variable('HEATING_MAIN_IN', 0)
HEATING_CHIMNEY = Variable('HEATING_CHIMNEY', 0)
HEATING_TP_IN = Variable('HEATING_TP_IN', 0)
HEATING_TP_OUT = Variable('HEATING_TP_OUT', 0)

if COOK_S.value():
    COOK_R.value(not COOK_R.value())
printInput()
printChanges()
示例#2
0
BEDROOM_3_WC_SOCKET = Variable('BEDROOM_3_WC_SOCKET', 0.0)
BEDROOM_3_SOCKET_1 = Variable('BEDROOM_3_SOCKET_1', 0.0)
CAM_1 = Variable('CAM_1', 0.0)
BACK_DOOR_SOCKET = Variable('BACK_DOOR_SOCKET', 0.0)
LIVING_SOCKET_1 = Variable('LIVING_SOCKET_1', 0.0)
LIVING_SOCKET_2 = Variable('LIVING_SOCKET_2', 0.0)
LIVING_SOCKET_3 = Variable('LIVING_SOCKET_3', 0.0)
WINTER_GARDEN_SWITCH_1 = Variable('WINTER_GARDEN_SWITCH_1', 0.0)
WINTER_GARDEN_SWITCH_2 = Variable('WINTER_GARDEN_SWITCH_2', 0.0)
BOILER_SWITCH = Variable('BOILER_SWITCH', 0.0)
DINING_SOCKET = Variable('DINING_SOCKET', 0.0)
COOK_SWITCH = Variable('COOK_SWITCH', 0.0)
HALL_1_SWITCH = Variable('HALL_1_SWITCH', 0.0)
BEDROOM_3_SOCKET_2 = Variable('BEDROOM_3_SOCKET_2', 0.0)
HALL_2_SWITCH = Variable('HALL_2_SWITCH', 0.0)
SHOWER_2_SWITCH = Variable('SHOWER_2_SWITCH', 0)
PODVAL_R = Variable('PODVAL_R', 0.0)
WINTER_GARDEN_S = Variable('WINTER_GARDEN_S', 0.0)
BACK_DOOR_TERM_IN_S = Variable('BACK_DOOR_TERM_IN_S', 20.0)
BEDROOM_3_WC_TERM = Variable('BEDROOM_3_WC_TERM', 20.0)
HEATING_MAIN_OUT = Variable('HEATING_MAIN_OUT', 0)
HEATING_MAIN_IN = Variable('HEATING_MAIN_IN', 0)
HEATING_CHIMNEY = Variable('HEATING_CHIMNEY', 0)
HEATING_TP_IN = Variable('HEATING_TP_IN', 0)
HEATING_TP_OUT = Variable('HEATING_TP_OUT', 0)

if WC_2_S.value():
    WC_2_R.value(not WC_2_R.value())
printInput()
printChanges()
示例#3
0
BEDROOM_3_WC_SOCKET = Variable('BEDROOM_3_WC_SOCKET', 0.0)
BEDROOM_3_SOCKET_1 = Variable('BEDROOM_3_SOCKET_1', 0.0)
CAM_1 = Variable('CAM_1', 0.0)
BACK_DOOR_SOCKET = Variable('BACK_DOOR_SOCKET', 0.0)
LIVING_SOCKET_1 = Variable('LIVING_SOCKET_1', 0.0)
LIVING_SOCKET_2 = Variable('LIVING_SOCKET_2', 0.0)
LIVING_SOCKET_3 = Variable('LIVING_SOCKET_3', 0.0)
WINTER_GARDEN_SWITCH_1 = Variable('WINTER_GARDEN_SWITCH_1', 0.0)
WINTER_GARDEN_SWITCH_2 = Variable('WINTER_GARDEN_SWITCH_2', 0.0)
BOILER_SWITCH = Variable('BOILER_SWITCH', 0.0)
DINING_SOCKET = Variable('DINING_SOCKET', 0.0)
COOK_SWITCH = Variable('COOK_SWITCH', 0.0)
HALL_1_SWITCH = Variable('HALL_1_SWITCH', 0.0)
BEDROOM_3_SOCKET_2 = Variable('BEDROOM_3_SOCKET_2', 0.0)
HALL_2_SWITCH = Variable('HALL_2_SWITCH', 0.0)
SHOWER_2_SWITCH = Variable('SHOWER_2_SWITCH', 0)
PODVAL_R = Variable('PODVAL_R', 0.0)
WINTER_GARDEN_S = Variable('WINTER_GARDEN_S', 0.0)
BACK_DOOR_TERM_IN_S = Variable('BACK_DOOR_TERM_IN_S', 20.0)
BEDROOM_3_WC_TERM = Variable('BEDROOM_3_WC_TERM', 20.0)
HEATING_MAIN_OUT = Variable('HEATING_MAIN_OUT', 0)
HEATING_MAIN_IN = Variable('HEATING_MAIN_IN', 0)
HEATING_CHIMNEY = Variable('HEATING_CHIMNEY', 0)
HEATING_TP_IN = Variable('HEATING_TP_IN', 0)
HEATING_TP_OUT = Variable('HEATING_TP_OUT', 0)

if BEDROOM_2_SECOND_S.value():
    BEDROOM_2_SECOND_R.value(not BEDROOM_2_SECOND_R.value())
printInput()
printChanges()
示例#4
0
BEDROOM_3_WC_SOCKET = Variable("BEDROOM_3_WC_SOCKET", 0.0)
BEDROOM_3_SOCKET_1 = Variable("BEDROOM_3_SOCKET_1", 0.0)
CAM_1 = Variable("CAM_1", 0.0)
BACK_DOOR_SOCKET = Variable("BACK_DOOR_SOCKET", 0.0)
LIVING_SOCKET_1 = Variable("LIVING_SOCKET_1", 0.0)
LIVING_SOCKET_2 = Variable("LIVING_SOCKET_2", 0.0)
LIVING_SOCKET_3 = Variable("LIVING_SOCKET_3", 0.0)
WINTER_GARDEN_SWITCH_1 = Variable("WINTER_GARDEN_SWITCH_1", 0.0)
WINTER_GARDEN_SWITCH_2 = Variable("WINTER_GARDEN_SWITCH_2", 0.0)
BOILER_SWITCH = Variable("BOILER_SWITCH", 0.0)
DINING_SOCKET = Variable("DINING_SOCKET", 0.0)
COOK_SWITCH = Variable("COOK_SWITCH", 0.0)
HALL_1_SWITCH = Variable("HALL_1_SWITCH", 0.0)
BEDROOM_3_SOCKET_2 = Variable("BEDROOM_3_SOCKET_2", 0.0)
HALL_2_SWITCH = Variable("HALL_2_SWITCH", 0.0)
SHOWER_2_SWITCH = Variable("SHOWER_2_SWITCH", 0)
PODVAL_R = Variable("PODVAL_R", 0.0)
WINTER_GARDEN_S = Variable("WINTER_GARDEN_S", 0.0)
BACK_DOOR_TERM_IN_S = Variable("BACK_DOOR_TERM_IN_S", 20.0)
BEDROOM_3_WC_TERM = Variable("BEDROOM_3_WC_TERM", 20.0)
HEATING_MAIN_OUT = Variable("HEATING_MAIN_OUT", 0)
HEATING_MAIN_IN = Variable("HEATING_MAIN_IN", 0)
HEATING_CHIMNEY = Variable("HEATING_CHIMNEY", 0)
HEATING_TP_IN = Variable("HEATING_TP_IN", 0)
HEATING_TP_OUT = Variable("HEATING_TP_OUT", 0)

if BACK_DOOR_S.value():
    BACK_DOOR_R.value(not BACK_DOOR_R.value())
printInput()
printChanges()
示例#5
0
BEDROOM_3_WC_SOCKET = Variable("BEDROOM_3_WC_SOCKET", 0.0)
BEDROOM_3_SOCKET_1 = Variable("BEDROOM_3_SOCKET_1", 0.0)
CAM_1 = Variable("CAM_1", 0.0)
BACK_DOOR_SOCKET = Variable("BACK_DOOR_SOCKET", 0.0)
LIVING_SOCKET_1 = Variable("LIVING_SOCKET_1", 0.0)
LIVING_SOCKET_2 = Variable("LIVING_SOCKET_2", 0.0)
LIVING_SOCKET_3 = Variable("LIVING_SOCKET_3", 0.0)
WINTER_GARDEN_SWITCH_1 = Variable("WINTER_GARDEN_SWITCH_1", 0.0)
WINTER_GARDEN_SWITCH_2 = Variable("WINTER_GARDEN_SWITCH_2", 0.0)
BOILER_SWITCH = Variable("BOILER_SWITCH", 0.0)
DINING_SOCKET = Variable("DINING_SOCKET", 0.0)
COOK_SWITCH = Variable("COOK_SWITCH", 0.0)
HALL_1_SWITCH = Variable("HALL_1_SWITCH", 0.0)
BEDROOM_3_SOCKET_2 = Variable("BEDROOM_3_SOCKET_2", 0.0)
HALL_2_SWITCH = Variable("HALL_2_SWITCH", 0.0)
SHOWER_2_SWITCH = Variable("SHOWER_2_SWITCH", 0)
PODVAL_R = Variable("PODVAL_R", 0.0)
WINTER_GARDEN_S = Variable("WINTER_GARDEN_S", 0.0)
BACK_DOOR_TERM_IN_S = Variable("BACK_DOOR_TERM_IN_S", 20.0)
BEDROOM_3_WC_TERM = Variable("BEDROOM_3_WC_TERM", 20.0)
HEATING_MAIN_OUT = Variable("HEATING_MAIN_OUT", 0)
HEATING_MAIN_IN = Variable("HEATING_MAIN_IN", 0)
HEATING_CHIMNEY = Variable("HEATING_CHIMNEY", 0)
HEATING_TP_IN = Variable("HEATING_TP_IN", 0)
HEATING_TP_OUT = Variable("HEATING_TP_OUT", 0)

if PORTAL_S.value():
    PORTAL_R.value(not PORTAL_R.value())
printInput()
printChanges()
示例#6
0
BEDROOM_3_WC_SOCKET = Variable('BEDROOM_3_WC_SOCKET', 0.0)
BEDROOM_3_SOCKET_1 = Variable('BEDROOM_3_SOCKET_1', 0.0)
CAM_1 = Variable('CAM_1', 0.0)
BACK_DOOR_SOCKET = Variable('BACK_DOOR_SOCKET', 0.0)
LIVING_SOCKET_1 = Variable('LIVING_SOCKET_1', 0.0)
LIVING_SOCKET_2 = Variable('LIVING_SOCKET_2', 0.0)
LIVING_SOCKET_3 = Variable('LIVING_SOCKET_3', 0.0)
WINTER_GARDEN_SWITCH_1 = Variable('WINTER_GARDEN_SWITCH_1', 0.0)
WINTER_GARDEN_SWITCH_2 = Variable('WINTER_GARDEN_SWITCH_2', 0.0)
BOILER_SWITCH = Variable('BOILER_SWITCH', 0.0)
DINING_SOCKET = Variable('DINING_SOCKET', 0.0)
COOK_SWITCH = Variable('COOK_SWITCH', 0.0)
HALL_1_SWITCH = Variable('HALL_1_SWITCH', 0.0)
BEDROOM_3_SOCKET_2 = Variable('BEDROOM_3_SOCKET_2', 0.0)
HALL_2_SWITCH = Variable('HALL_2_SWITCH', 0.0)
SHOWER_2_SWITCH = Variable('SHOWER_2_SWITCH', 0)
PODVAL_R = Variable('PODVAL_R', 0.0)
WINTER_GARDEN_S = Variable('WINTER_GARDEN_S', 0.0)
BACK_DOOR_TERM_IN_S = Variable('BACK_DOOR_TERM_IN_S', 20.0)
BEDROOM_3_WC_TERM = Variable('BEDROOM_3_WC_TERM', 20.0)
HEATING_MAIN_OUT = Variable('HEATING_MAIN_OUT', 0)
HEATING_MAIN_IN = Variable('HEATING_MAIN_IN', 0)
HEATING_CHIMNEY = Variable('HEATING_CHIMNEY', 0)
HEATING_TP_IN = Variable('HEATING_TP_IN', 0)
HEATING_TP_OUT = Variable('HEATING_TP_OUT', 0)

if SHOWER_2_S.value():
    SHOWER_2_R.value(not SHOWER_2_R.value())
printInput()
printChanges()
示例#7
0
BEDROOM_3_WC_SOCKET = Variable('BEDROOM_3_WC_SOCKET', 0.0)
BEDROOM_3_SOCKET_1 = Variable('BEDROOM_3_SOCKET_1', 0.0)
CAM_1 = Variable('CAM_1', 0.0)
BACK_DOOR_SOCKET = Variable('BACK_DOOR_SOCKET', 0.0)
LIVING_SOCKET_1 = Variable('LIVING_SOCKET_1', 0.0)
LIVING_SOCKET_2 = Variable('LIVING_SOCKET_2', 0.0)
LIVING_SOCKET_3 = Variable('LIVING_SOCKET_3', 0.0)
WINTER_GARDEN_SWITCH_1 = Variable('WINTER_GARDEN_SWITCH_1', 0.0)
WINTER_GARDEN_SWITCH_2 = Variable('WINTER_GARDEN_SWITCH_2', 0.0)
BOILER_SWITCH = Variable('BOILER_SWITCH', 0.0)
DINING_SOCKET = Variable('DINING_SOCKET', 0.0)
COOK_SWITCH = Variable('COOK_SWITCH', 0.0)
HALL_1_SWITCH = Variable('HALL_1_SWITCH', 0.0)
BEDROOM_3_SOCKET_2 = Variable('BEDROOM_3_SOCKET_2', 0.0)
HALL_2_SWITCH = Variable('HALL_2_SWITCH', 0.0)
SHOWER_2_SWITCH = Variable('SHOWER_2_SWITCH', 0)
PODVAL_R = Variable('PODVAL_R', 0.0)
WINTER_GARDEN_S = Variable('WINTER_GARDEN_S', 0.0)
BACK_DOOR_TERM_IN_S = Variable('BACK_DOOR_TERM_IN_S', 20.0)
BEDROOM_3_WC_TERM = Variable('BEDROOM_3_WC_TERM', 20.0)
HEATING_MAIN_OUT = Variable('HEATING_MAIN_OUT', 0)
HEATING_MAIN_IN = Variable('HEATING_MAIN_IN', 0)
HEATING_CHIMNEY = Variable('HEATING_CHIMNEY', 0)
HEATING_TP_IN = Variable('HEATING_TP_IN', 0)
HEATING_TP_OUT = Variable('HEATING_TP_OUT', 0)

if BEDROOM_3_WC_S.value():
    BEDROOM_3_WC_R.value(not BEDROOM_WC_3_R.value())
printInput()
printChanges()
示例#8
0
BEDROOM_3_WC_SOCKET = Variable('BEDROOM_3_WC_SOCKET', 0.0)
BEDROOM_3_SOCKET_1 = Variable('BEDROOM_3_SOCKET_1', 0.0)
CAM_1 = Variable('CAM_1', 0.0)
BACK_DOOR_SOCKET = Variable('BACK_DOOR_SOCKET', 0.0)
LIVING_SOCKET_1 = Variable('LIVING_SOCKET_1', 0.0)
LIVING_SOCKET_2 = Variable('LIVING_SOCKET_2', 0.0)
LIVING_SOCKET_3 = Variable('LIVING_SOCKET_3', 0.0)
WINTER_GARDEN_SWITCH_1 = Variable('WINTER_GARDEN_SWITCH_1', 0.0)
WINTER_GARDEN_SWITCH_2 = Variable('WINTER_GARDEN_SWITCH_2', 0.0)
BOILER_SWITCH = Variable('BOILER_SWITCH', 0.0)
DINING_SOCKET = Variable('DINING_SOCKET', 0.0)
COOK_SWITCH = Variable('COOK_SWITCH', 0.0)
HALL_1_SWITCH = Variable('HALL_1_SWITCH', 0.0)
BEDROOM_3_SOCKET_2 = Variable('BEDROOM_3_SOCKET_2', 0.0)
HALL_2_SWITCH = Variable('HALL_2_SWITCH', 0.0)
SHOWER_2_SWITCH = Variable('SHOWER_2_SWITCH', 0)
PODVAL_R = Variable('PODVAL_R', 0.0)
WINTER_GARDEN_S = Variable('WINTER_GARDEN_S', 0.0)
BACK_DOOR_TERM_IN_S = Variable('BACK_DOOR_TERM_IN_S', 20.0)
BEDROOM_3_WC_TERM = Variable('BEDROOM_3_WC_TERM', 20.0)
HEATING_MAIN_OUT = Variable('HEATING_MAIN_OUT', 0)
HEATING_MAIN_IN = Variable('HEATING_MAIN_IN', 0)
HEATING_CHIMNEY = Variable('HEATING_CHIMNEY', 0)
HEATING_TP_IN = Variable('HEATING_TP_IN', 0)
HEATING_TP_OUT = Variable('HEATING_TP_OUT', 0)

if HALL_1_S.value():
    HALL_1_R.value(not HALL_1_R.value())
printInput()
printChanges()
示例#9
0
BEDROOM_3_WC_SOCKET = Variable('BEDROOM_3_WC_SOCKET', 0.0)
BEDROOM_3_SOCKET_1 = Variable('BEDROOM_3_SOCKET_1', 0.0)
CAM_1 = Variable('CAM_1', 0.0)
BACK_DOOR_SOCKET = Variable('BACK_DOOR_SOCKET', 0.0)
LIVING_SOCKET_1 = Variable('LIVING_SOCKET_1', 0.0)
LIVING_SOCKET_2 = Variable('LIVING_SOCKET_2', 0.0)
LIVING_SOCKET_3 = Variable('LIVING_SOCKET_3', 0.0)
WINTER_GARDEN_SWITCH_1 = Variable('WINTER_GARDEN_SWITCH_1', 0.0)
WINTER_GARDEN_SWITCH_2 = Variable('WINTER_GARDEN_SWITCH_2', 0.0)
BOILER_SWITCH = Variable('BOILER_SWITCH', 0.0)
DINING_SOCKET = Variable('DINING_SOCKET', 0.0)
COOK_SWITCH = Variable('COOK_SWITCH', 0.0)
HALL_1_SWITCH = Variable('HALL_1_SWITCH', 0.0)
BEDROOM_3_SOCKET_2 = Variable('BEDROOM_3_SOCKET_2', 0.0)
HALL_2_SWITCH = Variable('HALL_2_SWITCH', 0.0)
SHOWER_2_SWITCH = Variable('SHOWER_2_SWITCH', 0)
PODVAL_R = Variable('PODVAL_R', 0.0)
WINTER_GARDEN_S = Variable('WINTER_GARDEN_S', 0.0)
BACK_DOOR_TERM_IN_S = Variable('BACK_DOOR_TERM_IN_S', 20.0)
BEDROOM_3_WC_TERM = Variable('BEDROOM_3_WC_TERM', 20.0)
HEATING_MAIN_OUT = Variable('HEATING_MAIN_OUT', 0)
HEATING_MAIN_IN = Variable('HEATING_MAIN_IN', 0)
HEATING_CHIMNEY = Variable('HEATING_CHIMNEY', 0)
HEATING_TP_IN = Variable('HEATING_TP_IN', 0)
HEATING_TP_OUT = Variable('HEATING_TP_OUT', 0)

if BEDROOM_1_MAIN_S.value():
    BEDROOM_1_MAIN_R.value(not BEDROOM_1_MAIN_R.value())
printInput()
printChanges()
示例#10
0
BEDROOM_3_WC_SOCKET = Variable('BEDROOM_3_WC_SOCKET', 0.0)
BEDROOM_3_SOCKET_1 = Variable('BEDROOM_3_SOCKET_1', 0.0)
CAM_1 = Variable('CAM_1', 0.0)
BACK_DOOR_SOCKET = Variable('BACK_DOOR_SOCKET', 0.0)
LIVING_SOCKET_1 = Variable('LIVING_SOCKET_1', 0.0)
LIVING_SOCKET_2 = Variable('LIVING_SOCKET_2', 0.0)
LIVING_SOCKET_3 = Variable('LIVING_SOCKET_3', 0.0)
WINTER_GARDEN_SWITCH_1 = Variable('WINTER_GARDEN_SWITCH_1', 0.0)
WINTER_GARDEN_SWITCH_2 = Variable('WINTER_GARDEN_SWITCH_2', 0.0)
BOILER_SWITCH = Variable('BOILER_SWITCH', 0.0)
DINING_SOCKET = Variable('DINING_SOCKET', 0.0)
COOK_SWITCH = Variable('COOK_SWITCH', 0.0)
HALL_1_SWITCH = Variable('HALL_1_SWITCH', 0.0)
BEDROOM_3_SOCKET_2 = Variable('BEDROOM_3_SOCKET_2', 0.0)
HALL_2_SWITCH = Variable('HALL_2_SWITCH', 0.0)
SHOWER_2_SWITCH = Variable('SHOWER_2_SWITCH', 0)
PODVAL_R = Variable('PODVAL_R', 0.0)
WINTER_GARDEN_S = Variable('WINTER_GARDEN_S', 0.0)
BACK_DOOR_TERM_IN_S = Variable('BACK_DOOR_TERM_IN_S', 20.0)
BEDROOM_3_WC_TERM = Variable('BEDROOM_3_WC_TERM', 20.0)
HEATING_MAIN_OUT = Variable('HEATING_MAIN_OUT', 0)
HEATING_MAIN_IN = Variable('HEATING_MAIN_IN', 0)
HEATING_CHIMNEY = Variable('HEATING_CHIMNEY', 0)
HEATING_TP_IN = Variable('HEATING_TP_IN', 0)
HEATING_TP_OUT = Variable('HEATING_TP_OUT', 0)

if WINTER_GARDEN_S.value():
    WINTER_GARDEN_R.value(not WINTER_GARDEN_R.value())
printInput()
printChanges()
示例#11
0
SHOWER_2_SWITCH = Variable('SHOWER_2_SWITCH', 0)
PODVAL_R = Variable('PODVAL_R', 0.0)
WINTER_GARDEN_S = Variable('WINTER_GARDEN_S', 0.0)
BACK_DOOR_TERM_IN_S = Variable('BACK_DOOR_TERM_IN_S', 20.875)
BEDROOM_3_WC_TERM = Variable('BEDROOM_3_WC_TERM', 21.0625)
HEATING_MAIN_OUT = Variable('HEATING_MAIN_OUT', 0)
HEATING_MAIN_IN = Variable('HEATING_MAIN_IN', 0)
HEATING_CHIMNEY = Variable('HEATING_CHIMNEY', 0)
HEATING_TP_IN = Variable('HEATING_TP_IN', 0)
HEATING_TP_OUT = Variable('HEATING_TP_OUT', 0)
BOILER_OFF_HOUR = Variable('BOILER_OFF_HOUR', 22.0)
BOILER_ON_HOUR = Variable('BOILER_ON_HOUR', 6.5)
DEBUG_RIGHT = Variable('DEBUG_RIGHT', 1579.0)
ALARM_CLOCK_TIME = Variable('ALARM_CLOCK_TIME', 6.25)
ALARM_CLOCK_OK = Variable('ALARM_CLOCK_OK', 1.0)
WC_1_FAN = Variable('WC_1_FAN', 0)
WC_2_FAN = Variable('WC_2_FAN', 0)
SHOWER_FAN = Variable('SHOWER_FAN', 0)
BEDROOM_3_WC_FAN = Variable('BEDROOM_3_WC_FAN', 0)
MASTER_FAN = Variable('MASTER_FAN', 0)
COOK_FAN = Variable('COOK_FAN', 0)
PODVAL_MASTER_FAN = Variable('PODVAL_MASTER_FAN', 0)
PODVAL_COOK_FAN = Variable('PODVAL_COOK_FAN', 0)

if WC_2_R.value():
    WC_2_FAN.value(6)
else:
    WC_2_FAN.value(0)
printInput()
printChanges()
示例#12
0
BEDROOM_3_WC_SOCKET = Variable('BEDROOM_3_WC_SOCKET', 0.0)
BEDROOM_3_SOCKET_1 = Variable('BEDROOM_3_SOCKET_1', 0.0)
CAM_1 = Variable('CAM_1', 0.0)
BACK_DOOR_SOCKET = Variable('BACK_DOOR_SOCKET', 0.0)
LIVING_SOCKET_1 = Variable('LIVING_SOCKET_1', 0.0)
LIVING_SOCKET_2 = Variable('LIVING_SOCKET_2', 0.0)
LIVING_SOCKET_3 = Variable('LIVING_SOCKET_3', 0.0)
WINTER_GARDEN_SWITCH_1 = Variable('WINTER_GARDEN_SWITCH_1', 0.0)
WINTER_GARDEN_SWITCH_2 = Variable('WINTER_GARDEN_SWITCH_2', 0.0)
BOILER_SWITCH = Variable('BOILER_SWITCH', 0.0)
DINING_SOCKET = Variable('DINING_SOCKET', 0.0)
COOK_SWITCH = Variable('COOK_SWITCH', 0.0)
HALL_1_SWITCH = Variable('HALL_1_SWITCH', 0.0)
BEDROOM_3_SOCKET_2 = Variable('BEDROOM_3_SOCKET_2', 0.0)
HALL_2_SWITCH = Variable('HALL_2_SWITCH', 0.0)
SHOWER_2_SWITCH = Variable('SHOWER_2_SWITCH', 0)
PODVAL_R = Variable('PODVAL_R', 0.0)
WINTER_GARDEN_S = Variable('WINTER_GARDEN_S', 0.0)
BACK_DOOR_TERM_IN_S = Variable('BACK_DOOR_TERM_IN_S', 20.0)
BEDROOM_3_WC_TERM = Variable('BEDROOM_3_WC_TERM', 20.0)
HEATING_MAIN_OUT = Variable('HEATING_MAIN_OUT', 0)
HEATING_MAIN_IN = Variable('HEATING_MAIN_IN', 0)
HEATING_CHIMNEY = Variable('HEATING_CHIMNEY', 0)
HEATING_TP_IN = Variable('HEATING_TP_IN', 0)
HEATING_TP_OUT = Variable('HEATING_TP_OUT', 0)

if WC_1_S.value():
    WC_1_R.value(not WC_1_R.value())
printInput()
printChanges()
示例#13
0
	def evaluate(self,node):
		"""Evaluator function
		Evaluates the parse tree rooted at the current node
		Basically a giant if construct that decides what to do
		based on the type of node (as found by the string at node[0])
		"""
		if DEBUG:
			print "Evaluating",node
		
		if self.cur_line>=len(self.parse_trees):
			#reached end of the list of parse trees
			return None
		
		if node[0]=='STMT':
			# statement
			line=self.cur_line
			self.evaluate(node[1])
			if self.cur_line==line:
				self.evaluate(node[-1])
		
		elif node[0]=='DIM':
			# declaration
			name=node[1][1] # gets the name of the identifier only (e.g. in myvar and myvar(3,3), myvar is the name)
			id_node=node[1] # parse tree rooted at id_node represents an identifier 
			
			# not specifying a data type makes it INTEGER by default
			if len(node)>2:
				datatype=DATA_TYPES[node[2]]
			else:
				datatype=DATA_TYPES['INTEGER']
			
			# declaring two variables with the same name (or the name of a predefined function) is not allowed
			if name in self.variables:
				raise InterpreterError("Runtime Error: %s already declared"%name)
			
			if len(id_node)==2:
				# scalar: simply create a new Variable
				var=Variable(name,datatype,datatype(0))
				#print "creating scalar %s"%name,var.__class__
			else:
				# array: get dimensions by evaluating the list following the name and create a MultiArray
				dimensions=self.evaluate(id_node[-1])
				var=MultiArray(dimensions, name, datatype,datatype(0))
			
			self.variables[name]=var
			self.cur_line+=1
		
		elif node[0]=='LET':
			# assignment
			varname=node[1][1] # left hand side
			value=self.evaluate(node[2]) # right hand side
			#print "got value ",value
			#if DEBUG:
			#	print value
				
			if varname not in self.variables:
				rhs_type=get_type(value,value)
				#print ">>>>>>",rhs_type
				if len(node[1])==2:
					# not an array: automatic declaration
					##print "+++++",DATA_TYPES[rhs_type]
					var=Variable(varname,DATA_TYPES[rhs_type],cast(DATA_TYPES[rhs_type],ctypes.c_long(0)))
					#print "value: ",var.value
				else:
					# array
					raise InterpreterError("Cannot assign to undeclared array %s: "%varname)
				self.variables[varname]=var
				#print "just assigned ",varname," to ", var.value.__class__
			else:
				var=self.variables[varname]
			
			if len(node[1])==2:
				# not an array: simple assignment
				#print "type: ", var.type
				#print "value: ", value
				if var.type!=value.__class__:
					#print "here"
					var.value=var.type(REQUIRED_PY_TYPE[var.type](value.value))
				else:
					var.value=value
			else:
				# array: figure out indices first and then try to assign
				coords=self.evaluate(node[1][-1])
				try:
					var.set_(coords,var.type(REQUIRED_PY_TYPE[var.type](value.value)))
				except AttributeError,e:	
					raise InterpreterError("Cannot assign to %s"%varname) 
			
			#print "checking: ",self.variables[varname].value
			self.cur_line+=1
示例#14
0
BEDROOM_3_WC_FAN = Variable('BEDROOM_3_WC_FAN', 0.0)
MASTER_FAN = Variable('MASTER_FAN', 2.0)
COOK_FAN = Variable('COOK_FAN', 0.0)
PODVAL_MASTER_FAN = Variable('PODVAL_MASTER_FAN', 0.0)
PODVAL_COOK_FAN = Variable('PODVAL_COOK_FAN', 0.0)
WC_PRESENCE = Variable('WC_PRESENCE', 0)
WC_2_PRESENCE = Variable('WC_2_PRESENCE', 0)
SHOWER_2_PRESNCE = Variable('SHOWER_2_PRESNCE', 0)
STAIRS_PRESENCE = Variable('STAIRS_PRESENCE', 0.0)
STAIRS_R = Variable('STAIRS_R', 0.0)
DEMO = Variable('DEMO', 0.0)
HEATING_MAIN_PUMP = Variable('HEATING_MAIN_PUMP', 0)
HEATING_TP_PUMP = Variable('HEATING_TP_PUMP', 0)
HEATING_LONG_CIRCLE = Variable('HEATING_LONG_CIRCLE', 0)
HEATING_SIGNAL_1 = Variable('HEATING_SIGNAL_1', 0)
HEATING_SIGNAL_2 = Variable('HEATING_SIGNAL_2', 0)
HEATING_SIGNAL_3 = Variable('HEATING_SIGNAL_3', 0)
QUIET_TIME = Variable('QUIET_TIME', 0.0)
BACK_DOOR_TERM_OUT_S = Variable('BACK_DOOR_TERM_OUT_S', 9.875)

import time

#Системное время
sys_time = time.localtime(DATE_TIME.value())

tm = sys_time[3] + sys_time[4] / 60

#BOILER_SWITCH.value(tm >= BOILER_ON_HOUR.value() and tm <= BOILER_OFF_HOUR.value())
printInput()
printChanges()
示例#15
0
BOILER_ON_HOUR = Variable('BOILER_ON_HOUR', 6.5)
DEBUG_RIGHT = Variable('DEBUG_RIGHT', 1579.0)
ALARM_CLOCK_TIME = Variable('ALARM_CLOCK_TIME', 6.25)
ALARM_CLOCK_OK = Variable('ALARM_CLOCK_OK', 1.0)
WC_1_FAN = Variable('WC_1_FAN', 0)
WC_2_FAN = Variable('WC_2_FAN', 0)
SHOWER_FAN = Variable('SHOWER_FAN', 0)
BEDROOM_3_WC_FAN = Variable('BEDROOM_3_WC_FAN', 0)
MASTER_FAN = Variable('MASTER_FAN', 0)
COOK_FAN = Variable('COOK_FAN', 0)
PODVAL_MASTER_FAN = Variable('PODVAL_MASTER_FAN', 0)
PODVAL_COOK_FAN = Variable('PODVAL_COOK_FAN', 0)

c = 0

if WC_1_FAN.value():
    c += 1

if WC_2_FAN.value():
    c += 1

if BEDROOM_3_WC_FAN.value():
    c += 1

if SHOWER_FAN.value():
    c += 1

MASTER_FAN.value(c + 6)
printInput()
printChanges()
示例#16
0
BEDROOM_3_WC_SOCKET = Variable('BEDROOM_3_WC_SOCKET', 0.0)
BEDROOM_3_SOCKET_1 = Variable('BEDROOM_3_SOCKET_1', 0.0)
CAM_1 = Variable('CAM_1', 0.0)
BACK_DOOR_SOCKET = Variable('BACK_DOOR_SOCKET', 0.0)
LIVING_SOCKET_1 = Variable('LIVING_SOCKET_1', 0.0)
LIVING_SOCKET_2 = Variable('LIVING_SOCKET_2', 0.0)
LIVING_SOCKET_3 = Variable('LIVING_SOCKET_3', 0.0)
WINTER_GARDEN_SWITCH_1 = Variable('WINTER_GARDEN_SWITCH_1', 0.0)
WINTER_GARDEN_SWITCH_2 = Variable('WINTER_GARDEN_SWITCH_2', 0.0)
BOILER_SWITCH = Variable('BOILER_SWITCH', 0.0)
DINING_SOCKET = Variable('DINING_SOCKET', 0.0)
COOK_SWITCH = Variable('COOK_SWITCH', 0.0)
HALL_1_SWITCH = Variable('HALL_1_SWITCH', 0.0)
BEDROOM_3_SOCKET_2 = Variable('BEDROOM_3_SOCKET_2', 0.0)
HALL_2_SWITCH = Variable('HALL_2_SWITCH', 0.0)
SHOWER_2_SWITCH = Variable('SHOWER_2_SWITCH', 0)
PODVAL_R = Variable('PODVAL_R', 0.0)
WINTER_GARDEN_S = Variable('WINTER_GARDEN_S', 0.0)
BACK_DOOR_TERM_IN_S = Variable('BACK_DOOR_TERM_IN_S', 20.0)
BEDROOM_3_WC_TERM = Variable('BEDROOM_3_WC_TERM', 20.0)
HEATING_MAIN_OUT = Variable('HEATING_MAIN_OUT', 0)
HEATING_MAIN_IN = Variable('HEATING_MAIN_IN', 0)
HEATING_CHIMNEY = Variable('HEATING_CHIMNEY', 0)
HEATING_TP_IN = Variable('HEATING_TP_IN', 0)
HEATING_TP_OUT = Variable('HEATING_TP_OUT', 0)

if BEDROOM_1_SECOND_S.value():
    BEDROOM_1_SECOND_R.value(not BEDROOM_1_SECOND_R.value())
printInput()
printChanges()
示例#17
0
HEATING_MAIN_IN = Variable('HEATING_MAIN_IN', 0)
HEATING_CHIMNEY = Variable('HEATING_CHIMNEY', 0)
HEATING_TP_IN = Variable('HEATING_TP_IN', 0)
HEATING_TP_OUT = Variable('HEATING_TP_OUT', 0)
BOILER_OFF_HOUR = Variable('BOILER_OFF_HOUR', 22.0)
BOILER_ON_HOUR = Variable('BOILER_ON_HOUR', 6.5)
DEBUG_RIGHT = Variable('DEBUG_RIGHT', 1579.0)
ALARM_CLOCK_TIME = Variable('ALARM_CLOCK_TIME', 7.0)
ALARM_CLOCK_OK = Variable('ALARM_CLOCK_OK', 1.0)
WC_1_FAN = Variable('WC_1_FAN', 0)
WC_2_FAN = Variable('WC_2_FAN', 0.0)
SHOWER_FAN = Variable('SHOWER_FAN', 0.0)
BEDROOM_3_WC_FAN = Variable('BEDROOM_3_WC_FAN', 0.0)
MASTER_FAN = Variable('MASTER_FAN', 0.0)
COOK_FAN = Variable('COOK_FAN', 0)
PODVAL_MASTER_FAN = Variable('PODVAL_MASTER_FAN', 0)
PODVAL_COOK_FAN = Variable('PODVAL_COOK_FAN', 0)
WC_PRESENCE = Variable('WC_PRESENCE', 0)
WC_2_PRESENCE = Variable('WC_2_PRESENCE', 0)
SHOWER_2_PRESNCE = Variable('SHOWER_2_PRESNCE', 0)
STAIRS_PRESENCE = Variable('STAIRS_PRESENCE', 0.0)
STAIRS_R = Variable('STAIRS_R', 0.0)
DEMO = Variable('DEMO', 0.0)

if STAIRS_PRESENCE.value():
    DEMO.value(1)
else:
    DEMO.value(0, 100)
printInput()
printChanges()
示例#18
0
BEDROOM_3_WC_SOCKET = Variable('BEDROOM_3_WC_SOCKET', 0.0)
BEDROOM_3_SOCKET_1 = Variable('BEDROOM_3_SOCKET_1', 0.0)
CAM_1 = Variable('CAM_1', 0.0)
BACK_DOOR_SOCKET = Variable('BACK_DOOR_SOCKET', 0.0)
LIVING_SOCKET_1 = Variable('LIVING_SOCKET_1', 0.0)
LIVING_SOCKET_2 = Variable('LIVING_SOCKET_2', 0.0)
LIVING_SOCKET_3 = Variable('LIVING_SOCKET_3', 0.0)
WINTER_GARDEN_SWITCH_1 = Variable('WINTER_GARDEN_SWITCH_1', 0.0)
WINTER_GARDEN_SWITCH_2 = Variable('WINTER_GARDEN_SWITCH_2', 0.0)
BOILER_SWITCH = Variable('BOILER_SWITCH', 0.0)
DINING_SOCKET = Variable('DINING_SOCKET', 0.0)
COOK_SWITCH = Variable('COOK_SWITCH', 0.0)
HALL_1_SWITCH = Variable('HALL_1_SWITCH', 0.0)
BEDROOM_3_SOCKET_2 = Variable('BEDROOM_3_SOCKET_2', 0.0)
HALL_2_SWITCH = Variable('HALL_2_SWITCH', 0.0)
SHOWER_2_SWITCH = Variable('SHOWER_2_SWITCH', 0)
PODVAL_R = Variable('PODVAL_R', 0.0)
WINTER_GARDEN_S = Variable('WINTER_GARDEN_S', 0.0)
BACK_DOOR_TERM_IN_S = Variable('BACK_DOOR_TERM_IN_S', 20.0)
BEDROOM_3_WC_TERM = Variable('BEDROOM_3_WC_TERM', 20.0)
HEATING_MAIN_OUT = Variable('HEATING_MAIN_OUT', 0)
HEATING_MAIN_IN = Variable('HEATING_MAIN_IN', 0)
HEATING_CHIMNEY = Variable('HEATING_CHIMNEY', 0)
HEATING_TP_IN = Variable('HEATING_TP_IN', 0)
HEATING_TP_OUT = Variable('HEATING_TP_OUT', 0)

if BOILER_S.value():
    BOILER_R.value(not BOILER_R.value())
printInput()
printChanges()
示例#19
0
DEBUG_RIGHT = Variable('DEBUG_RIGHT', 1579.0)
WC_1_FAN = Variable('WC_1_FAN', 0.0)
WC_2_FAN = Variable('WC_2_FAN', 0.0)
SHOWER_FAN = Variable('SHOWER_FAN', 0.0)
BEDROOM_3_WC_FAN = Variable('BEDROOM_3_WC_FAN', 0.0)
MASTER_FAN = Variable('MASTER_FAN', 2.0)
COOK_FAN = Variable('COOK_FAN', 0.0)
PODVAL_MASTER_FAN = Variable('PODVAL_MASTER_FAN', 0.0)
PODVAL_COOK_FAN = Variable('PODVAL_COOK_FAN', 0.0)
WC_PRESENCE = Variable('WC_PRESENCE', 0)
WC_2_PRESENCE = Variable('WC_2_PRESENCE', 0)
SHOWER_2_PRESNCE = Variable('SHOWER_2_PRESNCE', 0)
STAIRS_PRESENCE = Variable('STAIRS_PRESENCE', 0.0)
STAIRS_R = Variable('STAIRS_R', 0.0)
DEMO = Variable('DEMO', 0.0)
HEATING_MAIN_PUMP = Variable('HEATING_MAIN_PUMP', 0)
HEATING_TP_PUMP = Variable('HEATING_TP_PUMP', 0)
HEATING_LONG_CIRCLE = Variable('HEATING_LONG_CIRCLE', 0)
HEATING_SIGNAL_1 = Variable('HEATING_SIGNAL_1', 0)
HEATING_SIGNAL_2 = Variable('HEATING_SIGNAL_2', 0)
HEATING_SIGNAL_3 = Variable('HEATING_SIGNAL_3', 0)
QUIET_TIME = Variable('QUIET_TIME', 0.0)
BACK_DOOR_TERM_OUT_S = Variable('BACK_DOOR_TERM_OUT_S', 1.25)

if BEDROOM_3_MAIN_S.value() == 1:
    BEDROOM_3_MAIN_R.value(not BEDROOM_3_MAIN_R.value())

BEDROOM_3_WC_R.value(BEDROOM_3_MAIN_R.value() and BEDROOM_3_SECOND_R.value())
printInput()
printChanges()
示例#20
0
SHOWER_FAN = Variable('SHOWER_FAN', 0.0)
BEDROOM_3_WC_FAN = Variable('BEDROOM_3_WC_FAN', 0.0)
MASTER_FAN = Variable('MASTER_FAN', 0.0)
COOK_FAN = Variable('COOK_FAN', 0)
PODVAL_MASTER_FAN = Variable('PODVAL_MASTER_FAN', 0)
PODVAL_COOK_FAN = Variable('PODVAL_COOK_FAN', 0)
WC_PRESENCE = Variable('WC_PRESENCE', 0)
WC_2_PRESENCE = Variable('WC_2_PRESENCE', 0)
SHOWER_2_PRESNCE = Variable('SHOWER_2_PRESNCE', 0)
STAIRS_PRESENCE = Variable('STAIRS_PRESENCE', 0.0)
STAIRS_R = Variable('STAIRS_R', 0.0)
DEMO = Variable('DEMO', 0.0)
HEATING_MAIN_PUMP = Variable('HEATING_MAIN_PUMP', 0)
HEATING_TP_PUMP = Variable('HEATING_TP_PUMP', 0)
HEATING_LONG_CIRCLE = Variable('HEATING_LONG_CIRCLE', 0)
HEATING_SIGNAL_1 = Variable('HEATING_SIGNAL_1', 0)
HEATING_SIGNAL_2 = Variable('HEATING_SIGNAL_2', 0)
HEATING_SIGNAL_3 = Variable('HEATING_SIGNAL_3', 0)
QUIET_TIME = Variable('QUIET_TIME', 0.0)

if LIVING_S.value() == 1:
    LIVING_R.value(not LIVING_R.value())
elif LIVING_S.value() == 2:
    LIVING_R.value(LIVING_R.value())
    BOILER_R.value(LIVING_R.value())
    GAME_ROOM_R.value(LIVING_R.value())
    BEDROOM_3_MAIN_R.value(LIVING_R.value())
    BEDROOM_3_SECOND_R.value(LIVING_R.value())
printInput()
printChanges()
示例#21
0
SHOWER_2_SWITCH = Variable('SHOWER_2_SWITCH', 0)
PODVAL_R = Variable('PODVAL_R', 0.0)
WINTER_GARDEN_S = Variable('WINTER_GARDEN_S', 0.0)
BACK_DOOR_TERM_IN_S = Variable('BACK_DOOR_TERM_IN_S', 20.875)
BEDROOM_3_WC_TERM = Variable('BEDROOM_3_WC_TERM', 21.125)
HEATING_MAIN_OUT = Variable('HEATING_MAIN_OUT', 0)
HEATING_MAIN_IN = Variable('HEATING_MAIN_IN', 0)
HEATING_CHIMNEY = Variable('HEATING_CHIMNEY', 0)
HEATING_TP_IN = Variable('HEATING_TP_IN', 0)
HEATING_TP_OUT = Variable('HEATING_TP_OUT', 0)
BOILER_OFF_HOUR = Variable('BOILER_OFF_HOUR', 22.0)
BOILER_ON_HOUR = Variable('BOILER_ON_HOUR', 6.5)
DEBUG_RIGHT = Variable('DEBUG_RIGHT', 1579.0)
ALARM_CLOCK_TIME = Variable('ALARM_CLOCK_TIME', 6.25)
ALARM_CLOCK_OK = Variable('ALARM_CLOCK_OK', 1.0)
WC_1_FAN = Variable('WC_1_FAN', 0)
WC_2_FAN = Variable('WC_2_FAN', 0)
SHOWER_FAN = Variable('SHOWER_FAN', 0)
BEDROOM_3_WC_FAN = Variable('BEDROOM_3_WC_FAN', 0)
MASTER_FAN = Variable('MASTER_FAN', 0)
COOK_FAN = Variable('COOK_FAN', 0)
PODVAL_MASTER_FAN = Variable('PODVAL_MASTER_FAN', 0)
PODVAL_COOK_FAN = Variable('PODVAL_COOK_FAN', 0)

if WC_1_R.value():
    WC_1_FAN.value(6)
else:
    WC_1_FAN.value(0, 60)
printInput()
printChanges()
示例#22
0
BEDROOM_3_WC_SOCKET = Variable('BEDROOM_3_WC_SOCKET', 0.0)
BEDROOM_3_SOCKET_1 = Variable('BEDROOM_3_SOCKET_1', 0.0)
CAM_1 = Variable('CAM_1', 0.0)
BACK_DOOR_SOCKET = Variable('BACK_DOOR_SOCKET', 0.0)
LIVING_SOCKET_1 = Variable('LIVING_SOCKET_1', 0.0)
LIVING_SOCKET_2 = Variable('LIVING_SOCKET_2', 0.0)
LIVING_SOCKET_3 = Variable('LIVING_SOCKET_3', 0.0)
WINTER_GARDEN_SWITCH_1 = Variable('WINTER_GARDEN_SWITCH_1', 0.0)
WINTER_GARDEN_SWITCH_2 = Variable('WINTER_GARDEN_SWITCH_2', 0.0)
BOILER_SWITCH = Variable('BOILER_SWITCH', 0.0)
DINING_SOCKET = Variable('DINING_SOCKET', 0.0)
COOK_SWITCH = Variable('COOK_SWITCH', 0.0)
HALL_1_SWITCH = Variable('HALL_1_SWITCH', 0.0)
BEDROOM_3_SOCKET_2 = Variable('BEDROOM_3_SOCKET_2', 0.0)
HALL_2_SWITCH = Variable('HALL_2_SWITCH', 0.0)
SHOWER_2_SWITCH = Variable('SHOWER_2_SWITCH', 0)
PODVAL_R = Variable('PODVAL_R', 0.0)
WINTER_GARDEN_S = Variable('WINTER_GARDEN_S', 0.0)
BACK_DOOR_TERM_IN_S = Variable('BACK_DOOR_TERM_IN_S', 20.0)
BEDROOM_3_WC_TERM = Variable('BEDROOM_3_WC_TERM', 20.0)
HEATING_MAIN_OUT = Variable('HEATING_MAIN_OUT', 0)
HEATING_MAIN_IN = Variable('HEATING_MAIN_IN', 0)
HEATING_CHIMNEY = Variable('HEATING_CHIMNEY', 0)
HEATING_TP_IN = Variable('HEATING_TP_IN', 0)
HEATING_TP_OUT = Variable('HEATING_TP_OUT', 0)

if DINING_S.value():
    DINING_R.value(not DINING_R.value())
printInput()
printChanges()