package domain
Created by kristofer on 15-05-27.
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- domain
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Type Members
- case class AND (props: List[Proposition]) extends Proposition with Product with Serializable
- sealed trait APISP extends AnyRef
- case class ASSIGN (id: ID) extends StateUpdater with Product with Serializable
- case class Action (id: ID, value: StateUpdater) extends Product with Serializable
- case class Alternative (sop: List[SOP], nodeID: ID = ID.newID) extends SOP with Product with Serializable
- case class Arbitrary (sop: List[SOP], nodeID: ID = ID.newID) extends SOP with Product with Serializable
-
type
AttributeWrapper = JsValueWrapper
A helper type that any case class that has a implicit format in scope can be converted into.
A helper type that any case class that has a implicit format in scope can be converted into. Else, a compile error will happen.
- case class Condition (guard: Proposition, action: List[Action] = List(), attributes: SPAttributes = SPAttributes()) extends Product with Serializable
- case class DECR (n: Int) extends StateUpdater with Product with Serializable
- case class EQ (left: StateEvaluator, right: StateEvaluator) extends PropositionEvaluator with Product with Serializable
- case class GR (left: StateEvaluator, right: StateEvaluator) extends PropositionEvaluator with Product with Serializable
- case class GREQ (left: StateEvaluator, right: StateEvaluator) extends PropositionEvaluator with Product with Serializable
-
type
ID = UUID
The id used in SP.
The id used in SP. A standard UUID.
- sealed trait IDAble extends AnyRef
- case class INCR (n: Int) extends StateUpdater with Product with Serializable
- type JSFormat[T] = Format[T]
- type JSReads[T] = Reads[T]
- type JSWrites[T] = Writes[T]
- case class LE (left: StateEvaluator, right: StateEvaluator) extends PropositionEvaluator with Product with Serializable
- case class LEEQ (left: StateEvaluator, right: StateEvaluator) extends PropositionEvaluator with Product with Serializable
- case class NEQ (left: StateEvaluator, right: StateEvaluator) extends PropositionEvaluator with Product with Serializable
- case class NOT (p: Proposition) extends Proposition with Product with Serializable
- case class OR (props: List[Proposition]) extends Proposition with Product with Serializable
- case class Operation (name: String, conditions: List[Condition] = List(), attributes: SPAttributes = SPAttributes(), id: ID = ID.newID) extends IDAble with Product with Serializable
- case class OperationNode (operation: ID, conditions: List[Condition] = List(), sop: List[SOP] = List(), nodeID: ID = ID.newID) extends SOP with Product with Serializable
- case class Other (sop: List[SOP], nodeID: ID = ID.newID) extends SOP with Product with Serializable
- case class Parallel (sop: List[SOP], nodeID: ID = ID.newID) extends SOP with Product with Serializable
- sealed trait Proposition extends AnyRef
- sealed trait PropositionEvaluator extends Proposition
- sealed trait SOP extends AnyRef
- case class SOPSpec (name: String, sop: List[SOP], attributes: SPAttributes = SPAttributes(), id: ID = ID.newID) extends IDAble with Product with Serializable
-
type
SPAttributes = JsObject
The default data structure to store info about an item in SP.
The default data structure to store info about an item in SP. Is a json structure and can store any case class that has an implicit format defined for it.
- case class SPHeader (from: String = "", to: String = "", reqID: ID = ID.newID, reply: SPValue = SPAttributes(), fromTags: List[String] = List(), toTags: List[String] = List(), attributes: SPAttributes = SPAttributes(), timestamp: SPValue = SPMessage.timeStamp) extends Product with Serializable
- case class SPMessage (header: SPAttributes, body: SPAttributes) extends Product with Serializable
- case class SPResult (name: String, attributes: SPAttributes = SPAttributes(), id: ID = ID.newID) extends IDAble with Product with Serializable
- case class SPSpec (name: String, attributes: SPAttributes = SPAttributes(), id: ID = ID.newID) extends IDAble with Product with Serializable
- case class SPState (name: String = "state", state: Map[ID, SPValue], attributes: SPAttributes = SPAttributes(), id: ID = ID.newID) extends IDAble with Product with Serializable
- type SPValue = JsValue
- case class SVIDEval (id: ID) extends StateEvaluator with Product with Serializable
- case class Sequence (sop: List[SOP], nodeID: ID = ID.newID) extends SOP with Product with Serializable
- case class SometimeSequence (sop: List[SOP], nodeID: ID = ID.newID) extends SOP with Product with Serializable
- sealed trait StateEvaluator extends AnyRef
- sealed trait StateUpdater extends AnyRef
- case class Struct (name: String, items: Set[StructNode] = Set(), attributes: SPAttributes = SPAttributes(), id: ID = ID.newID) extends IDAble with Product with Serializable
- case class StructNode (item: ID, parent: Option[ID] = None, nodeID: ID = ID.newID, attributes: SPAttributes = SPAttributes()) extends Product with Serializable
- case class Thing (name: String, attributes: SPAttributes = SPAttributes(), id: ID = ID.newID) extends IDAble with Product with Serializable
- case class ValueHolder (v: SPValue) extends StateEvaluator with StateUpdater with Product with Serializable
Value Members
- def fromJsonAs[T](json: String)(implicit fjs: JSReads[T]): Try[T]
- def toJson[T](x: T)(implicit fjs: JSWrites[T]): String
- object APISP
- object Action extends Serializable
- object AlwaysFalse extends Proposition with Product with Serializable
- object AlwaysTrue extends Proposition with Product with Serializable
- object EmptySOP extends SOP with Product with Serializable
- object ID
-
object
Logic
extends AttributeLogics with StateLogics with OperationLogics with ThingLogics with PropositionConditionLogics with StructLogics with JsonImplicit
Created by kristofer on 15-05-27.
- object OperationNode extends Serializable
- object Proposition
- object SOP
- object SPAttributes
- object SPHeader extends Serializable
- object SPMessage extends Serializable
- object SPValue
- object StateEvaluator