Currently, Network and Component definition classes provide createContext methods which convert a Network or Component into a NetworkContext or ComponentContext respectively. This functionality should be moved out of the Network and Component classes. Networks and components should not know the implementation details of their context counterparts. A third class - ContextBuilder - will broker the transformation of definitions to contexts so that neither definitions or contexts needs to know anything about each other.
Currently,
Network
andComponent
definition classes providecreateContext
methods which convert aNetwork
orComponent
into aNetworkContext
orComponentContext
respectively. This functionality should be moved out of theNetwork
andComponent
classes. Networks and components should not know the implementation details of their context counterparts. A third class -ContextBuilder
- will broker the transformation of definitions to contexts so that neither definitions or contexts needs to know anything about each other.