marola.scoring

package marola.scoring

Members list

Type members

Classlikes

final case class Note(code: NoteCode, args: Map[String, JsonValue] = ...)

args are already JSON so the board writes them as-is: numbers stay numbers (the page formats them per locale), dates are ISO strings, lists are arrays.

args are already JSON so the board writes them as-is: numbers stay numbers (the page formats them per locale), dates are ISO strings, lists are arrays.

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object Note

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Note.type
object NoteCode

Attributes

Companion
enum
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
NoteCode.type
enum NoteCode(val label: String)

MIP-0054 §5.1: a scoring reason as a code on the wire; the page and the CLI word it.

MIP-0054 §5.1: a scoring reason as a code on the wire; the page and the CLI word it.

Attributes

Companion
object
Supertypes
trait Enum
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object Swimability

Pure decision logic over one already-fetched hourly forecast slice — no I/O, no Kyo effect type, trivially unit-testable (see SwimabilitySpec).

Pure decision logic over one already-fetched hourly forecast slice — no I/O, no Kyo effect type, trivially unit-testable (see SwimabilitySpec).

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
object WaterVerdict

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
final case class WaterVerdict(delta: Int, veto: Boolean, note: Option[Note], summary: String)

The bathing-water contribution to a beach's score (MIP-0001 §6): delta is added like any other deduction, veto forces the score to 0 regardless, note (if any) joins the notes list, and summary is the always-present short text for the ranked list's water column.

The bathing-water contribution to a beach's score (MIP-0001 §6): delta is added like any other deduction, veto forces the score to 0 regardless, note (if any) joins the notes list, and summary is the always-present short text for the ranked list's water column.

Attributes

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