tide v0.4.0 Tide.Agent View Source

The handler of Tide

Link to this section Summary

Functions

Returns a specification to start this module under a supervisor.

Get next reaction

Get reaction

Start a new agent

Get the state

Update the state

Link to this section Functions

Returns a specification to start this module under a supervisor.

See Supervisor.

Link to this function

emit(pid, command, args \\ [])

View Source

Emit an event

See Tide.Server.emit/3

Link to this function

exec(pid, command, args \\ [])

View Source

Exec an event

See Tide.Server.exec/3

Get next reaction

See Tide.Reaction.next/1

Get reaction

Link to this function

start_link(state \\ %{})

View Source

Start a new agent

Get the state

Update the state