Package

it.unibo.scafi.distrib.actor

patterns

Permalink

package patterns

Visibility
  1. Public
  2. All

Type Members

  1. trait BasicActorBehavior extends AnyRef

    Permalink

  2. trait LifecycleBehavior extends AnyRef

    Permalink

    Represents a behavior that marks some repetitive work via self messages (by default GoOn).

    Represents a behavior that marks some repetitive work via self messages (by default GoOn). Defines a utility method for the purpose ({{ScheduleNextWorkingCycle}}) and some template methods/hooks for lifecycle.

  3. trait ObservableActorBehavior extends AnyRef

    Permalink

    Represents the behavior of an 'observable' actor.

    Represents the behavior of an 'observable' actor. Responsibilities:

    • Keeps track of observers via {{observersManagementBehavior}}
    • Provide a method for notifying observers {{NotifyObservers}}
    • Provides a template method {{CurrentStateMessage} for building the default notification message out of the internal state TODO: one thing that might be done is the management of multiple *topics* by
    • Keeping a different set of observers for each topic
    • Using a partial function (TopicType => Option[Any]) for building a topic-specific msg
    • Defining a "language" for expressing (combinations of) topics
  4. trait PeriodicBehavior extends LifecycleBehavior

    Permalink

    Represents a periodic or repeatedly-delayed behavior.

    Represents a periodic or repeatedly-delayed behavior.

    • {{HandleLifecycle}} schedules the next job with a delay given by {{workInterval}
    • {{LifecyclePreStart}} handles the {{initialDelay}}
  5. abstract class PeriodicObservableInputProviderActor[K, V] extends Actor with PeriodicBehavior with ObservableActorBehavior

    Permalink

    Abstract actor, which is an ObservableActorBehavior with PeriodicBehavior, that is intended to notify its observers with messages with a key-value format.

    Abstract actor, which is an ObservableActorBehavior with PeriodicBehavior, that is intended to notify its observers with messages with a key-value format.

    K

    The type of the name.

    V

    The type of the value.

Ungrouped