from ....agent_factory.behaviors import *
from ....agent_factory.abstract_agent import *


class CycleAgent(AbstractAgent):

    class Periodic(PeriodicBehaviour):

        def on_start(self):
            print("Starting behaviour . . .")
            self.counter = 0

        def _on_tick(self):
            print("Counter:", self.counter)
            self.counter = self.counter + 1

    def _setup(self):
        print(str(__class__.__name__)+" agent starting . . .")
        b = self.Periodic(1)
        self.add_behaviour(b, None)
        b.start()

e5ab1b83bc7e2e25729eff529222607aa9918655
<mask token>

<mask token>


class CycleAgent(AbstractAgent):


    class Periodic(PeriodicBehaviour):

        def on_start(self):
            print('Starting behaviour . . .')
            self.counter = 0

        def _on_tick(self):
            print('Counter:', self.counter)
            self.counter = self.counter + 1
    <mask token>

<mask token>


class CycleAgent(AbstractAgent):


    class Periodic(PeriodicBehaviour):

        def on_start(self):
            print('Starting behaviour . . .')
            self.counter = 0

        def _on_tick(self):
            print('Counter:', self.counter)
            self.counter = self.counter + 1

    def _setup(self):
        print(str(__class__.__name__) + ' agent starting . . .')
        b = self.Periodic(1)
        self.add_behaviour(b, None)
        b.start()

from ....agent_factory.behaviors import *
from ....agent_factory.abstract_agent import *


class CycleAgent(AbstractAgent):


    class Periodic(PeriodicBehaviour):

        def on_start(self):
            print('Starting behaviour . . .')
            self.counter = 0

        def _on_tick(self):
            print('Counter:', self.counter)
            self.counter = self.counter + 1

    def _setup(self):
        print(str(__class__.__name__) + ' agent starting . . .')
        b = self.Periodic(1)
        self.add_behaviour(b, None)
        b.start()

from ....agent_factory.behaviors import *
from ....agent_factory.abstract_agent import *


class CycleAgent(AbstractAgent):

    class Periodic(PeriodicBehaviour):

        def on_start(self):
            print("Starting behaviour . . .")
            self.counter = 0

        def _on_tick(self):
            print("Counter:", self.counter)
            self.counter = self.counter + 1

    def _setup(self):
        print(str(__class__.__name__)+" agent starting . . .")
        b = self.Periodic(1)
        self.add_behaviour(b, None)
        b.start()
