trait JsonSupport extends MiscJsonFormats
Supports conversion of commands, state variables and events to/from JSON
- Alphabetic
 - By Inheritance
 
- JsonSupport
 - MiscJsonFormats
 - AnyRef
 - Any
 
- Hide All
 - Show All
 
- Public
 - All
 
Value Members
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        !=(arg0: Any): Boolean
      
      
      
- Definition Classes
 - AnyRef → Any
 
 - 
      
      
      
        
      
    
      
        final 
        def
      
      
        ##(): Int
      
      
      
- Definition Classes
 - AnyRef → Any
 
 - 
      
      
      
        
      
    
      
        final 
        def
      
      
        ==(arg0: Any): Boolean
      
      
      
- Definition Classes
 - AnyRef → Any
 
 - 
      
      
      
        
      
    
      
        final 
        def
      
      
        asInstanceOf[T0]: T0
      
      
      
- Definition Classes
 - Any
 
 - 
      
      
      
        
      
    
      
        implicit 
        val
      
      
        booleanFormat: Format[Boolean]
      
      
      
- Definition Classes
 - MiscJsonFormats
 
 - 
      
      
      
        
      
    
      
        implicit 
        val
      
      
        byteFormat: Format[Byte]
      
      
      
- Definition Classes
 - MiscJsonFormats
 
 - 
      
      
      
        
      
    
      
        implicit 
        val
      
      
        charFormat: Format[Char]
      
      
      
- Definition Classes
 - MiscJsonFormats
 
 - 
      
      
      
        
      
    
      
        implicit 
        val
      
      
        characterFormat: Format[Character]
      
      
      
- Definition Classes
 - MiscJsonFormats
 
 - 
      
      
      
        
      
    
      
        
        def
      
      
        clone(): AnyRef
      
      
      
- Attributes
 - protected[java.lang]
 - Definition Classes
 - AnyRef
 - Annotations
 - @native() @HotSpotIntrinsicCandidate() @throws( ... )
 
 -  implicit val commandFormat: OFormat[Command]
 -  implicit val controlCommandFormat: Reads[ControlCommand]
 - 
      
      
      
        
      
    
      
        implicit 
        val
      
      
        doubleFormat: Format[Double]
      
      
      
- Definition Classes
 - MiscJsonFormats
 
 - 
      
      
      
        
      
    
      
        final 
        def
      
      
        eq(arg0: AnyRef): Boolean
      
      
      
- Definition Classes
 - AnyRef
 
 - 
      
      
      
        
      
    
      
        
        def
      
      
        equals(arg0: Any): Boolean
      
      
      
- Definition Classes
 - AnyRef → Any
 
 -  implicit val eventFormat: OFormat[Event]
 - 
      
      
      
        
      
    
      
        implicit 
        val
      
      
        floatFormat: Format[Float]
      
      
      
- Definition Classes
 - MiscJsonFormats
 
 - 
      
      
      
        
      
    
      
        final 
        def
      
      
        getClass(): Class[_]
      
      
      
- Definition Classes
 - AnyRef → Any
 - Annotations
 - @native() @HotSpotIntrinsicCandidate()
 
 - 
      
      
      
        
      
    
      
        
        def
      
      
        hashCode(): Int
      
      
      
- Definition Classes
 - AnyRef → Any
 - Annotations
 - @native() @HotSpotIntrinsicCandidate()
 
 - 
      
      
      
        
      
    
      
        implicit 
        val
      
      
        integerFormat: Format[Integer]
      
      
      
- Definition Classes
 - MiscJsonFormats
 
 - 
      
      
      
        
      
    
      
        final 
        def
      
      
        isInstanceOf[T0]: Boolean
      
      
      
- Definition Classes
 - Any
 
 - 
      
      
      
        
      
    
      
        implicit 
        val
      
      
        longFormat: Format[Long]
      
      
      
- Definition Classes
 - MiscJsonFormats
 
 - 
      
      
      
        
      
    
      
        final 
        def
      
      
        ne(arg0: AnyRef): Boolean
      
      
      
- Definition Classes
 - AnyRef
 
 - 
      
      
      
        
      
    
      
        final 
        def
      
      
        notify(): Unit
      
      
      
- Definition Classes
 - AnyRef
 - Annotations
 - @native() @HotSpotIntrinsicCandidate()
 
 - 
      
      
      
        
      
    
      
        final 
        def
      
      
        notifyAll(): Unit
      
      
      
- Definition Classes
 - AnyRef
 - Annotations
 - @native() @HotSpotIntrinsicCandidate()
 
 - 
      
      
      
        
      
    
      
        implicit 
        def
      
      
        optionFormat[T](implicit arg0: Format[T]): Format[Option[T]]
      
      
      
- Definition Classes
 - MiscJsonFormats
 
 - 
      
      
      
        
      
    
      
        implicit 
        def
      
      
        parameterFormat2: Format[Parameter[_]]
      
      
      
- Definition Classes
 - MiscJsonFormats
 
 - 
      
      
      
        
      
    
      
        
        def
      
      
        readEvent[A <: Event](json: JsValue): A
      
      
      
Reads an event back from JSON
Reads an event back from JSON
- A
 the type of the event (use Any and match on the type if you don't know)
- json
 the parsed JSON
- returns
 an instance of the given event type, or an exception if the JSON is not valid for that type
 - 
      
      
      
        
      
    
      
        
        def
      
      
        readResult(json: JsValue): Result
      
      
      
Reads a Result back from JSON
Reads a Result back from JSON
- json
 the parsed JSON
- returns
 an instance of Result, or an exception if the JSON is not valid for that type
 - 
      
      
      
        
      
    
      
        
        def
      
      
        readSequenceCommand[A <: Command](json: JsValue): A
      
      
      
Reads a SequenceCommand back from JSON
Reads a SequenceCommand back from JSON
- A
 the type of the command (implied)
- json
 the parsed JSON
- returns
 an instance of the given SequenceCommand type, or an exception if the JSON is not valid for that type
 - 
      
      
      
        
      
    
      
        
        def
      
      
        readStateVariable[A <: StateVariable](json: JsValue): A
      
      
      
Reads a StateVariable back from JSON
Reads a StateVariable back from JSON
- A
 the type of the StateVariable (implied)
- json
 the parsed JSON
- returns
 an instance of the given StateVariable, or an exception if the JSON is not valid for that type
 -  def reads[T](x: JsValue)(implicit arg0: Reads[T]): T
 -  implicit val sequenceCommandFormat: Reads[SequenceCommand]
 - 
      
      
      
        
      
    
      
        implicit 
        val
      
      
        shortFormat: Format[Short]
      
      
      
- Definition Classes
 - MiscJsonFormats
 
 -  implicit val stateVariableFormat: OFormat[StateVariable]
 - 
      
      
      
        
      
    
      
        final 
        def
      
      
        synchronized[T0](arg0: ⇒ T0): T0
      
      
      
- Definition Classes
 - AnyRef
 
 - 
      
      
      
        
      
    
      
        implicit 
        val
      
      
        timestampFormat: Format[Instant]
      
      
      
- Definition Classes
 - MiscJsonFormats
 
 - 
      
      
      
        
      
    
      
        
        def
      
      
        toString(): String
      
      
      
- Definition Classes
 - AnyRef → Any
 
 - 
      
      
      
        
      
    
      
        final 
        def
      
      
        wait(arg0: Long, arg1: Int): Unit
      
      
      
- Definition Classes
 - AnyRef
 - Annotations
 - @throws( ... )
 
 - 
      
      
      
        
      
    
      
        final 
        def
      
      
        wait(arg0: Long): Unit
      
      
      
- Definition Classes
 - AnyRef
 - Annotations
 - @native() @throws( ... )
 
 - 
      
      
      
        
      
    
      
        final 
        def
      
      
        wait(): Unit
      
      
      
- Definition Classes
 - AnyRef
 - Annotations
 - @throws( ... )
 
 - 
      
      
      
        
      
    
      
        
        def
      
      
        writeEvent[A <: Event](event: A): JsValue
      
      
      
Writes an event to JSON
Writes an event to JSON
- A
 the type of the event (implied)
- event
 any instance of EventType
- returns
 a JsValue object representing the event
 - 
      
      
      
        
      
    
      
        
        def
      
      
        writeResult(result: Result): JsValue
      
      
      
Writes a Result to JSON
Writes a Result to JSON
- result
 any instance of Result
- returns
 a JsValue object representing the Result
 - 
      
      
      
        
      
    
      
        
        def
      
      
        writeSequenceCommand[A <: Command](result: A): JsValue
      
      
      
Writes a SequenceParameterSet to JSON
Writes a SequenceParameterSet to JSON
- A
 the type of the command (implied)
- result
 any instance of SequenceCommand
- returns
 a JsValue object representing the SequenceCommand
 - 
      
      
      
        
      
    
      
        
        def
      
      
        writeStateVariable[A <: StateVariable](stateVariable: A): JsValue
      
      
      
Writes a state variable to JSON
Writes a state variable to JSON
- A
 the type of the StateVariable (implied)
- stateVariable
 any instance of StateVariable
- returns
 a JsValue object representing the StateVariable
 -  def writes[T](x: T)(implicit arg0: Writes[T]): JsValue