# Path: src/lifeRaft/messages/base.py
# class BaseMessage(object):
#     AppendEntries = 0
#     RequestVote = 1
#     RequestVoteResponse = 2
#     Response = 3
# 
#     def __init__(self, sender, receiver, term, data):
#         self._timestamp = int(time.time())
# 
#         self._sender = sender
#         self._receiver = receiver
#         self._data = data
#         self._term = term
# 
#     @property
#     def receiver(self):
#         return self._receiver
# 
#     @property
#     def sender(self):
#         return self._sender
# 
#     @property
#     def data(self):
#         return self._data
# 
#     @property
#     def timestamp(self):
#         return self._timestamp
# 
#     @property
#     def term(self):
#         return self._term
# 
#     @property
#     def type(self):
#         return self._type
# 
# Path: src/lifeRaft/messages/response.py
# class ResponseMessage(BaseMessage):
# 
#     _type = BaseMessage.Response
# 
#     def __init__(self, sender, receiver, term, data):
#         BaseMessage.__init__(self, sender, receiver, term, data)


import random
from ..messages.base import BaseMessage
from ..messages.response import ResponseMessage
            from .follower import Follower
#!/usr/bin/python




class State(object):

    def __init__(self, timeout=1.0):
        self._timeout = timeout

    def set_server(self, server):

# Path: src/lifeRaft/messages/base.py
# class BaseMessage(object):
#     AppendEntries = 0
#     RequestVote = 1
#     RequestVoteResponse = 2
#     Response = 3
# 
#     def __init__(self, sender, receiver, term, data):
#         self._timestamp = int(time.time())
# 
#         self._sender = sender
#         self._receiver = receiver
#         self._data = data
#         self._term = term
# 
#     @property
#     def receiver(self):
#         return self._receiver
# 
#     @property
#     def sender(self):
#         return self._sender
# 
#     @property
#     def data(self):
#         return self._data
# 
#     @property
#     def timestamp(self):
#         return self._timestamp
# 
#     @property
#     def term(self):
#         return self._term
# 
#     @property
#     def type(self):
#         return self._type
# 
# Path: src/lifeRaft/messages/response.py
# class ResponseMessage(BaseMessage):
# 
#     _type = BaseMessage.Response
# 
#     def __init__(self, sender, receiver, term, data):
#         BaseMessage.__init__(self, sender, receiver, term, data)


# Path: src/lifeRaft/states/state.py
import random
from ..messages.base import BaseMessage
from ..messages.response import ResponseMessage
            from .follower import Follower

#!/usr/bin/python




class State(object):

    def __init__(self, timeout=1.0):
        self._timeout = timeout

    def set_server(self, server):

        self._server = server