JDomainModel

edomata.java.JDomainModel
See theJDomainModel companion object
abstract class JDomainModel[State, Event, Rejection]

Attributes

Companion
object
Source
JDomainModel.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Abstract methods

def initial: State

Initial (empty) state for this aggregate.

Initial (empty) state for this aggregate.

Attributes

Source
JDomainModel.scala
def transition(event: Event, state: State): JEither[List[Rejection], State]

Transition function: given an event and the current state, produce either the new state or a list of rejections.

Transition function: given an event and the current state, produce either the new state or a list of rejections.

Attributes

Source
JDomainModel.scala