Source code for scope.models

# -*- coding: utf-8 -*-
"""
Not sure what to do with this stuff yet...
"""


[docs]class SimObj(object): NAME = "Generic Sim Object"
[docs] def after_run(self): print( "This hook could be run after a supercompter job is finished for ", self.NAME, )
[docs] def before_recieve(self): print("This hook could be run recieving information into the generic layer!")
[docs] def before_send(self): print( "This hook could be run before sending information into the generic layer!" )
[docs] def send(self): raise NotImplementedError("You haven't overriden the send method, sorry!")
[docs] def recieve(self): raise NotImplementedError("You haven't overriden the recieve method, sorry!")
[docs]class Model(SimObj): NAME = "Generic Model Object" def __init__(self): print("Model set up!")
[docs]class Component(SimObj): NAME = "Generic Component Object" def __init__(self): print("Component set up!")