bufflib.load_data.Buffalo¶
- class bufflib.load_data.Buffalo(start_pos, end_pos, age, mass, horn_length)¶
This is a simple class representing a Buffalo
This class does not have any public attributes and thus you should use the methods to get and update each of the Buffalo’s attributes.
- __init__(start_pos, end_pos, age, mass, horn_length)¶
Setting up the Buffalo class
- Parameters:
start_pos (array_like) – Array of the start position of the Buffalo
end_pos – (array_like): Array of the end position of the Buffalo
age (int or float) – Array of the end position of the Buffalo
- Returns:
None
Methods
__init__
(start_pos, end_pos, age, mass, ...)Setting up the Buffalo class
get_pos
(time)Get position of the Buffalo at a certain time
Getting statistics on this Buffalo
- get_pos(time)¶
Get position of the Buffalo at a certain time
- Parameters:
time (int) – Integer giving the time at which we require the position
- Returns:
Returns the requested position
- Return type:
array_like
- get_stats()¶
Getting statistics on this Buffalo
- Parameters:
None –
- Returns:
A dictionary mapping each of the properties of the Buffalo to the respective value.
- Return type:
dict