Programmable Agents (The Algorithms Scribe Book 2) by José Montes Pérez

Programmable Agents (The Algorithms Scribe Book 2) by José Montes Pérez

Author:José Montes Pérez [Montes Pérez, José]
Language: eng
Format: azw3
Published: 2017-10-12T04:00:00+00:00


Methods Related to Tasks

Add First Task (…): this method adds a task to the top of the task list.

Add Last Task (…): this method adds a task to the end of the task list.

Impose Task (…): this method checks if a task is running, in which case it pauses and adds it to the top of the task list, then assigns a new task as a running task, starts it, and sets the agent to active.

Begin Task (…): this method starts the current task. In this case in particular turn off all lights, turn off the sound source and reset the timer. Then, depending on the task, turn on the corresponding light, assign the corresponding audio clip and turn on the audio source if it is the case.

Update Task (…): this method updates the current task. In this case, if the task is to give the alarm, it updates the timer and every quarter of a second changes the status of the lights from on to off and vice versa.

Pause Task (…): this method pauses the current task if it exists.

Resume Task (…): this method resumes a task that is paused. In this case in particular it establishes again that light must be on and that sound should be emitted, if it is the case.

End Task (…): this method completes the current task.

Reset Task (…): this method restarts the current task.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.