basic-host and remove context

This commit is contained in:
zixuanzh
2018-10-21 12:55:45 -04:00
parent 5fd7cbe0eb
commit 9e64202e5c
7 changed files with 19 additions and 29 deletions

View File

@ -2,11 +2,6 @@ from abc import ABC, abstractmethod
class IHost(ABC):
# default options constructor
def __init__(self, context, network):
self.context = context
self.network = network
@abstractmethod
def get_id(self):
"""
@ -22,7 +17,7 @@ class IHost(ABC):
pass
@abstractmethod
def mux(self):
def get_mux(self):
"""
:return: mux instance of host
"""