# 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_name = 'Floor ' + str(floor)
    area_name = 'VAV ' + str(number)
    if 'Sutardja Dai Hall' in gis.buildings:
        sdh = gis.buildings['Sutardja Dai Hall']
        if floor_name in sdh and area_name in sdh[floor_name]:
            vav.add_area(sdh[floor_name][area_name])
        else:
            print 'VAV', number, 'on floor', floor, 'has no GIS area'
    else:
        print 'VAV GIS table not found'

    return vav

for x in range(1, 21 + 1):
    make_vav(4, x, (x != 10 and x != 14))

node_types.verify_devices()
node_types.verify_objects()


def draw_all(filename='out.png'):
  """
  draw every graph connected and everything yeah
  """
  def _make_abbreviation(string):
    s = string.split(" ")
    return ''.join([word[0] for word in s])
  plt.clf()
  this = sys.modules[__name__]

# 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_name = 'Floor ' + str(floor)
    area_name = 'VAV ' + str(number)
    if 'Sutardja Dai Hall' in gis.buildings:
        sdh = gis.buildings['Sutardja Dai Hall']
        if floor_name in sdh and area_name in sdh[floor_name]:
            vav.add_area(sdh[floor_name][area_name])
        else:
            print 'VAV', number, 'on floor', floor, 'has no GIS area'
    else:
        print 'VAV GIS table not found'

    return vav

for x in range(1, 21 + 1):
    make_vav(4, x, (x != 10 and x != 14))

node_types.verify_devices()
node_types.verify_objects()


def draw_all(filename='out.png'):
  """
  draw every graph connected and everything yeah
  """
  def _make_abbreviation(string):
    s = string.split(" ")
    return ''.join([word[0] for word in s])
  plt.clf()
  this = sys.modules[__name__]

  relationals = [getattr(this, i) for i in this.__dict__ if isinstance(getattr(this,i), Relational)]