# Path: prosoar/task/turnpoint.py
# class Turnpoint(GeoPoint):
# 
#     def __init__(self):
#         self.name = ''
#         self.id = 0
#         self.comment = ''
#         self.altitude = 0
# 
#         self.sector = Sector()
# 
#     def __str__(self):
#         return '{}'.format(self.name)


from prosoar.task.turnpoint import Turnpoint

        # type: fai, triangle, outreturn, goal, racing, aat, mixed, touring
        self.type = 'racing'

        self.distance = 0

        # aat_min_time (s)
        self.aat_min_time = 3 * 3600

        # start_max_speed (m/s), start_max_height (m)
        self.start_max_speed = 60
        self.start_max_height = 0

        # start_max_height_ref (AGL, MSL)
        self.start_max_height_ref = 'MSL'

        # finish_min_height (m)
        self.finish_min_height = 0
        self.finish_min_height_ref = 'AGL'

        # fai_finish rule
        self.fai_finish = 0

        self.min_points = 2
        self.max_points = 13
        self.homogeneous_tps = 0
        self.is_closed = 0
        self.task_scored = 0

    def __len__(self):

# Path: prosoar/task/turnpoint.py
# class Turnpoint(GeoPoint):
# 
#     def __init__(self):
#         self.name = ''
#         self.id = 0
#         self.comment = ''
#         self.altitude = 0
# 
#         self.sector = Sector()
# 
#     def __str__(self):
#         return '{}'.format(self.name)


# Path: prosoar/task/task.py
from prosoar.task.turnpoint import Turnpoint


        # type: fai, triangle, outreturn, goal, racing, aat, mixed, touring
        self.type = 'racing'

        self.distance = 0

        # aat_min_time (s)
        self.aat_min_time = 3 * 3600

        # start_max_speed (m/s), start_max_height (m)
        self.start_max_speed = 60
        self.start_max_height = 0

        # start_max_height_ref (AGL, MSL)
        self.start_max_height_ref = 'MSL'

        # finish_min_height (m)
        self.finish_min_height = 0
        self.finish_min_height_ref = 'AGL'

        # fai_finish rule
        self.fai_finish = 0

        self.min_points = 2
        self.max_points = 13
        self.homogeneous_tps = 0
        self.is_closed = 0
        self.task_scored = 0

    def __len__(self):

        return len(self.__list)