trait Speaker[I <: Intention, S <: Signal] extends Agent[I, S]
A special case of Agent where it is in speaker mode.
This is an immutable class. Speakers are parameterized by the type of com.markblokpoel.lanag.core.Intention and com.markblokpoel.lanag.core.Signal they use.
- I
The intention type must be a subtype of com.markblokpoel.lanag.core.Intention.
- S
The signal type must be a subtype of com.markblokpoel.lanag.core.Signal.
- Alphabetic
- By Inheritance
- Speaker
- Agent
- Serializable
- Serializable
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- All
Abstract Value Members
-
abstract
def
asListener: Listener[I, S]
Returns an immutable copy of the agent, but as a listener.
Returns an immutable copy of the agent, but as a listener.
- Definition Classes
- Agent
-
abstract
def
asSpeaker: Speaker[I, S]
Returns an immutable copy of the agent, but as a speaker.
Returns an immutable copy of the agent, but as a speaker.
- Definition Classes
- Agent
-
abstract
def
produceSignal(intention: I): (S, Data)
Produces a signal, based on an intention.
Produces a signal, based on an intention.
- intention
The com.markblokpoel.lanag.core.Intention to be communicated.
- returns
A tuple that consisting of the com.markblokpoel.lanag.core.Signal selected by the communicator and some com.markblokpoel.lanag.core.Data that contains information of the signal production process.
-
abstract
def
selectIntention: I
Selects an intention for the agent to communicate.
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
- def +(other: String): String
- def ->[B](y: B): (Speaker[I, S], B)
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
- def ensuring(cond: (Speaker[I, S]) ⇒ Boolean, msg: ⇒ Any): Speaker[I, S]
- def ensuring(cond: (Speaker[I, S]) ⇒ Boolean): Speaker[I, S]
- def ensuring(cond: Boolean, msg: ⇒ Any): Speaker[I, S]
- def ensuring(cond: Boolean): Speaker[I, S]
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
- def formatted(fmtstr: String): String
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
- def →[B](y: B): (Speaker[I, S], B)
Language Agents Simulation framework
For detailed documentation on using the framework please see the README.md file at the Github repository at https://github.com/markblokpoel/lanag-core.