Beispiel #1
0
 def __init__(self, ident):
     Agent.__init__(self, ident)
     self._homeRange = 10
     self._plots = []
     # list of individuals. if value==-1 means that the individual is dead
     # if value != -1 defines the current age of individual
     self._population = []
     self._population.append(15)
     self._population.append(15)
     self._starvationRate = 0
     self._surplus = 0
     self._numAnimals = 0
     self._animalsProbability = 1.0
     self._yearsWithoutAnimals = 0
Beispiel #2
0
 def __init__(self, ident):
     Agent.__init__(self, ident)
     self._homeRange = 10
     self._plots = []
     # list of individuals. if value==-1 means that the individual is dead
     # if value != -1 defines the current age of individual
     self._population = []
     self._population.append(15)
     self._population.append(15)
     self._starvationRate = 0
     self._surplus = 0
     self._numAnimals = 0
     self._animalsProbability = 1.0
     self._yearsWithoutAnimals = 0
Beispiel #3
0
    def __init__(self, id, numId):
        Agent.__init__(self, id)

        self._age = 0
        self._deathAge = 0

        self._fertility = 0.0
        self._fertilityAge = 0
        self._fertilityEndsAge = 0

        self._lastHarvest = 0.0
        self._stock = []
        self._stock.append(0.0)
        self._stock.append(0.0)
        self._stock.append(0.0)
        self._estimates = 0.0

        self._bestFarm = Point2DInt(0, 0)
Beispiel #4
0
    def __init__(self, id, numId):
        Agent.__init__( self, id)
        
        self._age = 0
        self._deathAge = 0
        
        self._fertility = 0.0
        self._fertilityAge = 0
        self._fertilityEndsAge = 0
            
        self._lastHarvest = 0.0
        self._stock = []
        self._stock.append(0.0)
        self._stock.append(0.0)
        self._stock.append(0.0)
        self._estimates = 0.0

        self._bestFarm = Point2DInt(0,0)
Beispiel #5
0
 def __init__(self, id):
     Agent.__init__( self, id)
Beispiel #6
0
    def __init__(self, id):
        Agent.__init__(self, id)

        self._averageAsabiya = 0.0
        self._empireId = 0
        self._numRegions = 1
Beispiel #7
0
 def __init__(self, id):
     Agent.__init__(self, id)
Beispiel #8
0
 def __init__(self, id):
     """ constructor of class HelloAgent """
     Agent.__init__(self, id)
     self._value = 1
Beispiel #9
0
 def __init__(self, id):
     Agent.__init__(self, id)
     print('constructing agent: ', self.id)
Beispiel #10
0
 def __init__(self, id):
     """ constructor of class HelloAgent """
     Agent.__init__(self, id)
     self._value = 1
Beispiel #11
0
 def __init__(self, id):
     Agent.__init__(self, id)
     self._aggressiveness = 1.0
     self._strength = 1.0
     self._naturalGrowth = 0.0
Beispiel #12
0
	def __init__(self, id):
		Agent.__init__( self, id)
		print('constructing agent: ',self.id)
Beispiel #13
0
 def __init__(self, id):
     Agent.__init__( self, id)
     self._aggressiveness = 1.0
     self._strength = 1.0
     self._naturalGrowth = 0.0
Beispiel #14
0
	def __init__(self, id):
		Agent.__init__( self, id)

		self._averageAsabiya= 0.0
		self._empireId = 0
		self._numRegions = 1