Example #1
0
File: ap.py Project: xrubio/models
 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
Example #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
Example #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)
Example #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)
Example #5
0
 def __init__(self, id):
     Agent.__init__( self, id)
Example #6
0
    def __init__(self, id):
        Agent.__init__(self, id)

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

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