Democracy

io.github.quafadas.dairect.Democracy
object Democracy

Attributes

Experimental
true
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Democracy.type

Members list

Type members

Classlikes

case class Initiative(id: String, agent: String, expectedOutcome: String, why: String)

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class Initiatives(initiatives: List[Initiative])

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class Vote(agent: String, id: String)

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class Votes(votes: List[Vote])

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Value members

Concrete methods

def collaborate(agents: List[Agent[_[_[_, _, _, _, _]]]]): Nothing
def delegate(initiatives: List[Initiative], votes: Map[Vote, Int], agents: List[Agent[_[_[_, _, _, _, _]]]]): IO[List[AiMessage]]
def proposeInitiatives(agents: List[Agent[_[_[_, _, _, _, _]]]]): IO[List[Initiative]]
def vote(agents: List[Agent[_[_[_, _, _, _, _]]]], proposals: List[Initiative]): IO[Map[Vote, Int]]