Represents a Worker for a given Actor
Attributes
- Companion
- object
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
Members list
Value members
Abstract methods
Predicate discriminator used to determine if a worker can carry out a job.
Predicate discriminator used to determine if a worker can carry out a job.
Value parameters
- context
-
Information about the context the worker is in
Attributes
- Returns
-
Job => Boolean
The worker has nothing to do, create jobs from within the given context.
The worker has nothing to do, create jobs from within the given context.
Value parameters
- context
-
Information about the context the worker is in
Attributes
- Returns
-
List[Job]
Test whether an actor thinks a job is complete.
Test whether an actor thinks a job is complete.
Value parameters
- context
-
Information about the context the worker is in
Attributes
- Returns
-
Job => Boolean
When a job is completed, produce an outcome of any new jobs and an updated Actor.
When a job is completed, produce an outcome of any new jobs and an updated Actor.
Value parameters
- context
-
Information about the context the worker is in
Attributes
- Returns
-
Job => Outcome[(List[Job], Actor)]
A function describing how this actor does work on whichever jobs they are able to work on.
A function describing how this actor does work on whichever jobs they are able to work on.
Value parameters
- context
-
Information about the context the worker is in
Attributes
- Returns
-
Job => (Job, Actor)