Packages

  • package root
    Definition Classes
    root
  • package csw
    Definition Classes
    root
  • package params

    This project is intended to hold reusable models and params used throughout the csw source code.

    Params

    This project is intended to hold reusable models and params used throughout the csw source code.

    This also provides out of the box support to cater to the diverse communication requirements. Consumer of this library will be able to create Commands, Events, States to store ParameterSets.

    Imp Packages

    Commands and Events

    This packages contains classes, traits and models used to create *commands* and *events*. These are all based on type-safe keys and items (a set of values with optional units). Each key has a specific type and the key's values must be of that type.

    Two types of csw.params.commands.Command are supported:

    Following are the concrete commands supported by csw:

    Two types of csw.params.events.Event are supported:

    core

    This package supports serialization and deserialization of commands, events and state variables in JSON format csw.params.core.formats.JsonSupport.

    Scala and Java APIs

    All the param and event classes are immutable. The set methods return a new instance of the object with a new item added and the get methods return an Option, in case the Key is not found. There are also value methods that return a value directly, throwing an exception if the key or value is not found.

    Key Types

    A set of standard key types and matching items are defined. Each key accepts one or more values of the given type.

    Following csw.params.core.generics.KeyType are supported by csw:

    +--------------+-------------------------+---------------------------+
    |  Primitive   |      Scala KeyType      |       Java KeyType        |
    +--------------+-------------------------+---------------------------+
    | Boolean      | KeyType.BooleanKey      | JKeyType.BooleanKey      |
    | Character    | KeyType.CharKey         | JKeyType.JCharKey        |
    | Byte         | KeyType.ByteKey         | JKeyType.ByteKey         |
    | Short        | KeyType.ShortKey        | JKeyType.ShortKey        |
    | Long         | KeyType.LongKey         | JKeyType.LongKey         |
    | Int          | KeyType.IntKey          | JKeyType.IntKey          |
    | Float        | KeyType.FloatKey        | JKeyType.FloatKey        |
    | Double       | KeyType.DoubleKey       | JKeyType.DoubleKey       |
    | String       | KeyType.StringKey       | JKeyType.StringKey       |
    | UtcTime      | KeyType.UTCTimeKey      | JKeyType.UTCTimeKey      |
    | TaiTime      | KeyType.TAITimeKey      | JKeyType.TAITimeKey      |
    | ----------   | ----------              | ----------               |
    | ByteArray    | KeyType.ByteArrayKey    | JKeyType.ByteArrayKey    |
    | ShortArray   | KeyType.ShortArrayKey   | JKeyType.ShortArrayKey   |
    | LongArray    | KeyType.LongArrayKey    | JKeyType.LongArrayKey    |
    | IntArray     | KeyType.IntArrayKey     | JKeyType.IntArrayKey     |
    | FloatArray   | KeyType.FloatArrayKey   | JKeyType.FloatArrayKey   |
    | DoubleArray  | KeyType.DoubleArrayKey  | JKeyType.DoubleArrayKey  |
    | ----------   | ----------              | ----------               |
    | ByteMatrix   | KeyType.ByteMatrixKey   | JKeyType.ByteMatrixKey   |
    | ShortMatrix  | KeyType.ShortMatrixKey  | JKeyType.ShortMatrixKey  |
    | LongMatrix   | KeyType.LongMatrixKey   | JKeyType.LongMatrixKey   |
    | IntMatrix    | KeyType.IntMatrixKey    | JKeyType.IntMatrixKey    |
    | FloatMatrix  | KeyType.FloatMatrixKey  | JKeyType.FloatMatrixKey  |
    | DoubleMatrix | KeyType.DoubleMatrixKey | JKeyType.DoubleMatrixKey |
    | ----------   | ----------              | ----------               |
    | Choice       | KeyType.ChoiceKey       | JKeyType.ChoiceKey       |
    +--------------+-------------------------+---------------------------+

    Detailed information about creating Keys and Parameters can be found here: https://tmtsoftware.github.io/csw/services/messages/keys-parameters.html

    Detailed information about creating commands can be found here: https://tmtsoftware.github.io/csw/services/messages/commands.html

    Detailed information about creating events can be found here: https://tmtsoftware.github.io/csw/services/messages/events.html

    Definition Classes
    csw
  • package events
    Definition Classes
    params
  • CoordinateSystem
  • DMSObserveEvent
  • Event
  • EventKey
  • EventName
  • IRDetectorEvent
  • ObserveEvent
  • ObserveEventKeys
  • ObserveEventNames
  • OperationalState
  • OpticalDetectorEvent
  • ParamFactories
  • SequencerObserveEvent
  • SystemEvent
  • WFSDetectorEvent

case class SystemEvent extends ParameterSetType[SystemEvent] with Event with Product with Serializable

Defines a system event. Constructor is private to ensure eventId is created internally to guarantee unique value.

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SystemEvent
  2. Serializable
  3. Product
  4. Equals
  5. Event
  6. ParameterSetType
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new SystemEvent(source: Prefix, eventName: EventName)

    A java helper to construct SystemEvent

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def add[P <: Parameter[_]](parameter: P): SystemEvent

    Adds a parameter to the parameter set

    Adds a parameter to the parameter set

    P

    the Parameter type

    parameter

    the parameter to add

    returns

    a new instance of this parameter set with the given parameter added

    Definition Classes
    ParameterSetType
  5. final def apply[S](key: Key[S]): Parameter[S]

    Return the parameter associated with a Key rather than an Option

    Return the parameter associated with a Key rather than an Option

    S

    the Scala value type

    key

    the Key to be used for lookup

    returns

    the parameter associated with the Key or a NoSuchElementException if the key does not exist

    Definition Classes
    ParameterSetType
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
  8. def contains(key: Key[_]): Boolean

    Returns true if the data contains the given key

    Returns true if the data contains the given key

    Definition Classes
    ParameterSetType
  9. def create(data: Set[Parameter[_]]): SystemEvent

    Create a new SystemEvent instance when a parameter is added or removed

    Create a new SystemEvent instance when a parameter is added or removed

    data

    set of parameters

    returns

    a new instance of SystemEvent with new eventId, eventTime and provided data

    Attributes
    protected
    Definition Classes
    SystemEventParameterSetType
  10. def dataToString: String

    A comma separated string representation of parameters

    A comma separated string representation of parameters

    Attributes
    protected
    Definition Classes
    ParameterSetType
  11. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  12. val eventId: Id

    unique Id for event

    unique Id for event

    Definition Classes
    SystemEventEvent
  13. def eventKey: EventKey

    The EventKey used to publish or subscribe an event

    The EventKey used to publish or subscribe an event

    returns

    an EventKey formed by combination of prefix and eventName of an event

    Definition Classes
    Event
  14. val eventName: EventName

    The name of event

    The name of event

    Definition Classes
    SystemEventEvent
  15. val eventTime: UTCTime

    The time of event creation

    The time of event creation

    Definition Classes
    SystemEventEvent
  16. def exists[S](key: Key[S]): Boolean

    Returns true if the key exists in the parameter set

    Returns true if the key exists in the parameter set

    S

    the Scala value type

    key

    the key to check for

    returns

    true if the key is found

    Definition Classes
    ParameterSetType
  17. def find[S](parameter: Parameter[S]): Option[Parameter[S]]

    Find a parameter based on it's keyName and keyType

    Find a parameter based on it's keyName and keyType

    S

    the type of values the Parameter holds

    parameter

    who's keyName and keyType is used to get values and units

    returns

    an Option of Parameter[S] if it is found, otherwise None

    Definition Classes
    ParameterSetType
  18. def get[S](keyName: String, keyType: KeyType[S]): Option[Parameter[S]]

    Returns an Option with the parameter for the key if found, otherwise None

    Returns an Option with the parameter for the key if found, otherwise None

    S

    the value type

    keyName

    the keyName for a key

    keyType

    the keyType for a key

    returns

    the parameter for the key, if found

    Definition Classes
    ParameterSetType
  19. def get[S](key: Key[S]): Option[Parameter[S]]

    Returns an Option with the parameter for the key if found, otherwise None

    Returns an Option with the parameter for the key if found, otherwise None

    S

    the value type

    key

    the Key to be used for lookup

    returns

    the parameter for the key, if found

    Definition Classes
    ParameterSetType
  20. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  21. def getStringMap: Map[String, String]

    Returns a map based on this object where the keys and values are in string get (Could be useful for exporting in a get that other languages can read).

    Returns a map based on this object where the keys and values are in string get (Could be useful for exporting in a get that other languages can read). Derived classes might want to add values to this map for fixed fields.

    Definition Classes
    ParameterSetType
  22. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  23. def isInvalid: Boolean
    Definition Classes
    Event
  24. def jFind[S](parameter: Parameter[S]): Optional[Parameter[S]]

    A Java helper to find a parameter based on it's keyName and keyType

    A Java helper to find a parameter based on it's keyName and keyType

    S

    the type of values the Parameter holds

    parameter

    who's keyName and keyType is used to get values and units

    returns

    an Optional of Parameter[S] if it is found, otherwise empty

    Definition Classes
    ParameterSetType
  25. def jGet[S](keyName: String, keyType: KeyType[S]): Optional[Parameter[S]]

    Returns an Optional with the parameter for the key if found, otherwise empty

    Returns an Optional with the parameter for the key if found, otherwise empty

    S

    the value type

    keyName

    the keyName for a key

    keyType

    the keyType for a key

    returns

    the parameter for the key, if found

    Definition Classes
    ParameterSetType
  26. def jGet[S](key: Key[S]): Optional[Parameter[S]]

    Returns an Optional with the parameter for the key if found, otherwise empty

    Returns an Optional with the parameter for the key if found, otherwise empty

    S

    the value type

    key

    the Key to be used for lookup

    returns

    the parameter for the key, if found

    Definition Classes
    ParameterSetType
  27. def jGetStringMap: Map[String, String]

    A Java helper that returns a map based on this object where the keys and values are in string get (Could be useful for exporting in a get that other languages can read).

    A Java helper that returns a map based on this object where the keys and values are in string get (Could be useful for exporting in a get that other languages can read). Derived classes might want to add values to this map for fixed fields.

    Definition Classes
    ParameterSetType
  28. def jMadd[P <: Parameter[_]](parametersToAdd: Set[P]): SystemEvent
    Definition Classes
    ParameterSetType
  29. def jMissingKeys(keys: Key[_]*): Set[String]

    A Java helper that returns a set containing the names of any of the given keys that are missing in the data

    A Java helper that returns a set containing the names of any of the given keys that are missing in the data

    keys

    one or more keys

    Definition Classes
    ParameterSetType
    Annotations
    @varargs()
  30. def jParamSet: Set[Parameter[_]]

    A Java helper to get parameters for this parameter set

    A Java helper to get parameters for this parameter set

    Definition Classes
    ParameterSetType
  31. def madd[P <: Parameter[_]](parametersToAdd: Set[P]): SystemEvent

    Adds several parameters to the parameter set

    Adds several parameters to the parameter set

    P

    must be a subclass of Parameter

    parametersToAdd

    the list of parameters to add to the parameter set

    returns

    a new instance of this parameter set with the given parameter added

    Definition Classes
    ParameterSetType
    Note

    madd ensures check for duplicate key

  32. def madd[P <: Parameter[_]](parametersToAdd: P*): SystemEvent

    Adds several parameters to the parameter set

    Adds several parameters to the parameter set

    P

    must be a subclass of Parameter

    parametersToAdd

    the list of parameters to add to the parameter set

    returns

    a new instance of this parameter set with the given parameter added

    Definition Classes
    ParameterSetType
    Annotations
    @varargs()
    Note

    madd ensures check for duplicate key

  33. def missingKeys(keys: Key[_]*): Set[String]

    Returns a set containing the names of any of the given keys that are missing in the data

    Returns a set containing the names of any of the given keys that are missing in the data

    keys

    one or more keys

    returns

    a Set of key names

    Definition Classes
    ParameterSetType
  34. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  35. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  36. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  37. val paramSet: Set[Parameter[_]]

    An optional initial set of parameters (keys with values)

    An optional initial set of parameters (keys with values)

    Definition Classes
    SystemEventEventParameterSetType
  38. def paramType: ParameterSetType[_]

    A helper to give access of public members of ParameterSetType

    A helper to give access of public members of ParameterSetType

    returns

    a handle to ParameterSetType extended by concrete implementation of this class

    Definition Classes
    Event
  39. final def parameter[S](key: Key[S]): Parameter[S]

    Returns the actual parameter associated with a key

    Returns the actual parameter associated with a key

    S

    the Scala value type

    key

    the Key to be used for lookup

    returns

    the parameter associated with the key or a NoSuchElementException if the key does not exist

    Definition Classes
    ParameterSetType
  40. def productElementNames: Iterator[String]
    Definition Classes
    Product
  41. def remove[P <: Parameter[_]](parameter: P): SystemEvent

    Removes a parameter based on the parameter

    Removes a parameter based on the parameter

    P

    the type of the parameter to be removed

    parameter

    to be removed from the parameter set

    returns

    a new T, where T is a parameter set child with the parameter removed or identical if the parameter is not present

    Definition Classes
    ParameterSetType
  42. def remove[S](key: Key[S]): SystemEvent

    Remove a parameter from the parameter set by key

    Remove a parameter from the parameter set by key

    S

    the Scala value type

    key

    the Key to be used for removal

    returns

    a new T, where T is a parameter set child with the key removed or identical if the key is not present

    Definition Classes
    ParameterSetType
  43. def size: Int

    The number of parameters in this parameter set

    The number of parameters in this parameter set

    returns

    the number of parameters in the parameter set

    Definition Classes
    ParameterSetType
  44. val source: Prefix

    Prefix representing source of the event

    Prefix representing source of the event

    Definition Classes
    SystemEventEvent
  45. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  46. def toString(): String

    A common toString method for all concrete implementation

    A common toString method for all concrete implementation

    returns

    the string representation of command

    Definition Classes
    Event → AnyRef → Any
  47. def typeName: String

    A name identifying the type of parameter set, such as "setup", "observe".

    A name identifying the type of parameter set, such as "setup", "observe". This is used in the JSON and toString output.

    Definition Classes
    ParameterSetType
  48. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  49. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  50. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from Event

Inherited from AnyRef

Inherited from Any

Ungrouped