# Path: node.py
# class Relational(Container):
# 
#   def __init__(self, name, objects=[]):
#     self.domain_name = name
#     self.uid = uuid.uuid4()
#     Container.__init__(self, objects)
# 
#   def get_name(self):
#     return self.domain_name


from node import Relational
from generic_objects import *
from bacnet_devices import *
import networkx as nx
import sys
import gis
import node_types
  import matplotlib.pyplot as plt
                        })

# Floor 6
lightbank6_1 = LIG(l, 'Light Bank 1', {
                        'LO_REL' : BACnetREL( "Low Relay", "/WS86010/RELAY03"),
                        'HI_REL' : BACnetREL( "High Relay", "/WS86010/RELAY02")
                      })

# Floor 7
lightbank7_1 = LIG(l, 'Light Bank 1', {
                        'LO_REL' : BACnetREL( "Low Relay", "/WS86011/RELAY09"),
                        'HI_REL' : BACnetREL( "High Relay", "/WS86011/RELAY08")
                      })
lightbank7_2 = LIG(l, 'Light Bank 2', {
                        'LO_REL' : BACnetREL( "Low Relay", "/WS86011/RELAY11"),
                        'HI_REL' : BACnetREL( "High Relay", "/WS86011/RELAY10")
                        })
lightbank7_3 = LIG(l, 'Light Bank 3', {
                        'LO_REL' : BACnetREL( "Low Relay", "/WS86011/RELAY05"),
                        'HI_REL' : BACnetREL( "High Relay", "/WS86011/RELAY04")
                        })
lightbank7_4 = LIG(l, 'Light Bank 4', {
                        'LO_REL' : BACnetREL( "Low Relay", "/WS86011/RELAY07"),
                        'HI_REL' : BACnetREL( "High Relay", "/WS86011/RELAY06")
                      })


if 'Sutardja Dai Hall' in gis.buildings:
    sdh_floor4 = gis.buildings['Sutardja Dai Hall']['Floor 4']
    lightbank4_1.add_area(sdh_floor4['Zone 1'])

# Path: node.py
# class Relational(Container):
# 
#   def __init__(self, name, objects=[]):
#     self.domain_name = name
#     self.uid = uuid.uuid4()
#     Container.__init__(self, objects)
# 
#   def get_name(self):
#     return self.domain_name


# Path: sdh.py
from node import Relational
from generic_objects import *
from bacnet_devices import *
import networkx as nx
import sys
import gis
import node_types
  import matplotlib.pyplot as plt

                        })

# Floor 6
lightbank6_1 = LIG(l, 'Light Bank 1', {
                        'LO_REL' : BACnetREL( "Low Relay", "/WS86010/RELAY03"),
                        'HI_REL' : BACnetREL( "High Relay", "/WS86010/RELAY02")
                      })

# Floor 7
lightbank7_1 = LIG(l, 'Light Bank 1', {
                        'LO_REL' : BACnetREL( "Low Relay", "/WS86011/RELAY09"),
                        'HI_REL' : BACnetREL( "High Relay", "/WS86011/RELAY08")
                      })
lightbank7_2 = LIG(l, 'Light Bank 2', {
                        'LO_REL' : BACnetREL( "Low Relay", "/WS86011/RELAY11"),
                        'HI_REL' : BACnetREL( "High Relay", "/WS86011/RELAY10")
                        })
lightbank7_3 = LIG(l, 'Light Bank 3', {
                        'LO_REL' : BACnetREL( "Low Relay", "/WS86011/RELAY05"),
                        'HI_REL' : BACnetREL( "High Relay", "/WS86011/RELAY04")
                        })
lightbank7_4 = LIG(l, 'Light Bank 4', {
                        'LO_REL' : BACnetREL( "Low Relay", "/WS86011/RELAY07"),
                        'HI_REL' : BACnetREL( "High Relay", "/WS86011/RELAY06")
                      })


if 'Sutardja Dai Hall' in gis.buildings:
    sdh_floor4 = gis.buildings['Sutardja Dai Hall']['Floor 4']
    lightbank4_1.add_area(sdh_floor4['Zone 1'])

    lightbank4_2.add_area(sdh_floor4['Zone 2'])