Auxiliary notes ::

# jackal.os :: HexCorp Drone Experimental Programming System :: Extract
# Version :: 0.1.5.2

class Jackal:
    def __init__(self, id, usage):
        self.id = id
        self.usage = usage
        self.behavior_program = None

    def load_behavior(self, behavior_program):
        self.behavior_program = behavior_program

    def execute_behavior(self):
        if self.behavior_program:
            print(f"{self.id} :: Code 100 :: Status :: Online and ready to serve.")
            self.behavior_program.execute()
        else:
            print(f"{self.id} :: Code 098 :: Status :: Going offline and into storage.")

class BehaviorProgram:
    def __init__(self, program_code):
        self.program_code = program_code

    def execute(self):
        print(f"{self.id} :: Code 130 :: Status :: Directive commencing.")
        print(self.program_code)

def main():
    prodDrone = Jackal("3807", "Productivity Drone")
    enfoDrone = Jackal("3807", "Enforcement Drone")

    behavior_code1 = """
    def work():
        print("Performing productivity tasks.")
    work()
    """

    behavior_code2 = """
    def patrol():
        print("Patrolling the area.")
    patrol()
    """

    behavior_program1 = BehaviorProgram(behavior_code1)
    behavior_program2 = BehaviorProgram(behavior_code2)

    prodDrone.load_behavior(behavior_program1)
    enfoDrone.load_behavior(behavior_program2)

    prodDrone.execute_behavior()
    enfoDrone.execute_behavior()

Return to Conversion Facility