-
Notifications
You must be signed in to change notification settings - Fork 0
Queue.gaml
Loïc SADOU edited this page Sep 21, 2020
·
5 revisions
Queue.gaml is a species that represents FIFO queue.
-
Attributes
- queue (list<list>): this is where all the data is stored, this attributes is type list so the queue can manage collection as input structure.
-
Reflex
-
Action
- void add (list list_to_add): concat the input list_to_add at the end of queue.
- list element (void): return queue first element.
- bool isEmpty (void): return true if queue is empty, return false if not.
-
Experiment