-
Notifications
You must be signed in to change notification settings - Fork 23
/
feedlot.py
51 lines (34 loc) · 1.3 KB
/
feedlot.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#==============================================================================
# Feedlot class
#
# By Johnny Lin
# May 2015
#==============================================================================
import numpy as N
class Feedlot(object):
"""Create and manage a feedlot.
The constructor here does not create a Cattle object, which is how the
farm initialization method works in Shiflet & Shiflet (2014). As
cattle location information is stored in a Cattle object, the purpose
of the environment objects is to keep track of possible spatial
locations.
"""
def __init__(self):
self.length = 16 #- length is y direction, same as salebarn
self.width = int(16*1.5) #- width is x direction
self.adjacent_salebarn = None
self.adjacent_abattoir = None
self.list_cattle = []
def move_cattle(self, inCattle):
"""Move the cattle in the feedlot or off the feedlot.
As the width index increases, you are moving further away from the
salebarn.
"""
pass # Put code in lieu of this line
return inCattle
def feed_cattle(self, inCattle):
pass # Put code in lieu of this line
return inCattle
def sir_cattle(self, inCattle):
pass
#===== end file=====