示例#1
0
 def __init__(self, type):
     '''
     Constructor
     '''
     if type!="User" and type!="Learner":
         raise TypeError("AgentMind neither User nor Learner!")
     self.__type = type
     self.__rules=[]
     self.states={"reward":0, "sanction":0}
     self.input={}
     self.actionParameters={}
     self.__buffer={}
     self.locomotionSelector = LocomotionSelector()
     self.locomotion = Locomotion()
     self.perception = Perceive()
     self.reward = Reward()