forked from s452751/AI_PRO
47 lines
1.2 KiB
Python
47 lines
1.2 KiB
Python
class Tractor:
|
|
def __init__(self, horizontal_index, vertical_index, hitch, header, fuel_tank):
|
|
self.horizontal_index = horizontal_index
|
|
self.vertical_index = vertical_index
|
|
self.hitch = hitch
|
|
self.header = header
|
|
self.fuel_tank = fuel_tank
|
|
|
|
@property
|
|
def horizontal_index(self):
|
|
return self.__horizontal_index
|
|
|
|
@horizontal_index.setter
|
|
def horizontal_index(self, horizontal_index):
|
|
self.__horizontal_index = horizontal_index
|
|
|
|
@property
|
|
def vertical_index(self):
|
|
return self.__vertical_index
|
|
|
|
@vertical_index.setter
|
|
def vertical_index(self, vertical_index):
|
|
self.__vertical_index = vertical_index
|
|
|
|
@property
|
|
def hitch(self):
|
|
return self.__hitch
|
|
|
|
@hitch.setter
|
|
def hitch(self, hitch):
|
|
self.__hitch = hitch
|
|
|
|
@property
|
|
def fuel_tank(self):
|
|
return self.__fuel_tank
|
|
|
|
@fuel_tank.setter
|
|
def fuel_tank(self, fuel_tank):
|
|
self.__fuel_tank = fuel_tank
|
|
|
|
@property
|
|
def header(self):
|
|
return self.__header
|
|
|
|
@header.setter
|
|
def header(self, header):
|
|
self.__header = header |