Packages

abstract class Interaction[I <: Intention, S <: Signal, A <: Agent[I, S]] extends Serializable

Defines agent interactions.

Implementations of this class specify the agent types, including the intention and signal type they use.

I

The intention type used by the agents, must be a subtype of com.markblokpoel.lanag.core.Intention.

S

The signal type used by the agents, must be a subtype of com.markblokpoel.lanag.core.Signal.

A

The type of agents, must be a subtype of com.markblokpoel.lanag.core.Agent.

Annotations
@SerialVersionUID()
Linear Supertypes
Serializable, Serializable, AnyRef, Any
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Interaction
  2. Serializable
  3. Serializable
  4. AnyRef
  5. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Interaction(agent1: A, agent2: A, originData: Data = NoData())

    agent1

    One of two agents that is part of this interaction, must be a subtype of com.markblokpoel.lanag.core.Agent.

    agent2

    One of two agents that is part of this interaction, must be a subtype of com.markblokpoel.lanag.core.Agent.

    originData

    The data specifies the agents origin, must be a subtype of com.markblokpoel.lanag.core.Data. Default value is com.markblokpoel.lanag.core.NoData.

Type Members

  1. abstract type ListenerType <: Listener[I, S] with A

    Specifies what type of listeners this interaction uses.

    Specifies what type of listeners this interaction uses. Must be a subtype of the base agent type.

  2. abstract type SpeakerType <: Speaker[I, S] with A

    Specifies what type of speakers this interaction uses.

    Specifies what type of speakers this interaction uses. Must be a subtype of the base agent type.

Abstract Value Members

  1. abstract val agent1AsListener: ListenerType

    Specifies agent1 in listener mode.

  2. abstract val agent1AsSpeaker: SpeakerType

    Specifies agent1 in speaker mode.

  3. abstract val agent2AsListener: ListenerType

    Specifies agent2 in listener mode.

  4. abstract val agent2AsSpeaker: SpeakerType

    Specifies agent2 in speaker mode.

  5. abstract val currentListener: ListenerType

    The current listener.

    The current listener.

    Attributes
    protected
  6. abstract val currentSpeaker: SpeakerType

    The current speaker.

    The current speaker.

    Attributes
    protected
  7. abstract def runAndCollectData: Data

    Simulates all turns in the interaction and returns a collection (possibly a summary) of all the data gathered.

  8. abstract def stoppingCriterion: Boolean

    Specifies when the interaction is over.

    Specifies when the interaction is over.

    returns

    True when the interaction is finished.

  9. abstract def turn: Data

    Executes a turn in the interaction.

    Executes a turn in the interaction.

    returns

    Data reflecting the results of this turn.

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String
    Implicit
    This member is added by an implicit conversion from Interaction[I, S, A] to any2stringadd[Interaction[I, S, A]] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (Interaction[I, S, A], B)
    Implicit
    This member is added by an implicit conversion from Interaction[I, S, A] to ArrowAssoc[Interaction[I, S, A]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  6. val agent1: A
  7. val agent2: A
  8. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  9. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  10. def ensuring(cond: (Interaction[I, S, A]) ⇒ Boolean, msg: ⇒ Any): Interaction[I, S, A]
    Implicit
    This member is added by an implicit conversion from Interaction[I, S, A] to Ensuring[Interaction[I, S, A]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  11. def ensuring(cond: (Interaction[I, S, A]) ⇒ Boolean): Interaction[I, S, A]
    Implicit
    This member is added by an implicit conversion from Interaction[I, S, A] to Ensuring[Interaction[I, S, A]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  12. def ensuring(cond: Boolean, msg: ⇒ Any): Interaction[I, S, A]
    Implicit
    This member is added by an implicit conversion from Interaction[I, S, A] to Ensuring[Interaction[I, S, A]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  13. def ensuring(cond: Boolean): Interaction[I, S, A]
    Implicit
    This member is added by an implicit conversion from Interaction[I, S, A] to Ensuring[Interaction[I, S, A]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  14. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  15. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  16. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  17. def formatted(fmtstr: String): String
    Implicit
    This member is added by an implicit conversion from Interaction[I, S, A] to StringFormat[Interaction[I, S, A]] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  18. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  19. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  20. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  21. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  22. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  23. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  24. val originData: Data
  25. val pairId: Long

    The unique ID number of this pair / interaction.

  26. def switchRoles(): Unit

    Switches the roles of the agents.

    Switches the roles of the agents. Speaker becomes listener and listener becomes speaker.

    Attributes
    protected
  27. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  28. def toString(): String
    Definition Classes
    AnyRef → Any
  29. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  31. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  32. def [B](y: B): (Interaction[I, S, A], B)
    Implicit
    This member is added by an implicit conversion from Interaction[I, S, A] to ArrowAssoc[Interaction[I, S, A]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from Interaction[I, S, A] to any2stringadd[Interaction[I, S, A]]

Inherited by implicit conversion StringFormat from Interaction[I, S, A] to StringFormat[Interaction[I, S, A]]

Inherited by implicit conversion Ensuring from Interaction[I, S, A] to Ensuring[Interaction[I, S, A]]

Inherited by implicit conversion ArrowAssoc from Interaction[I, S, A] to ArrowAssoc[Interaction[I, S, A]]

Ungrouped