DefaultPollManager

This class allows to define and execute multiple polls.

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
open lateinit override var pollList: List<Poll<S, V>>

List of polls to be managed.

Functions

Link copied to clipboard
open override fun computeAllPolls(): List<Ranking<S>>

Computes every Poll defined, return a list of Ranking.

Link copied to clipboard
open infix override fun initializedAs(initializer: PollManager<S, V>.() -> Unit): PollManager<S, V>

DSL-function useful to initialize the manager.

Link copied to clipboard
open override fun poll(newPoll: Poll<S, V>.() -> Unit): Poll<S, V>

DSL-function useful to initialize a poll.

Link copied to clipboard
open operator override fun Poll<S, V>.unaryPlus()

Shortcut to add a poll in pollList.