Class

ai.deepsense.deeplang.params.choice

AbstractChoiceParam

Related Doc: package choice

Permalink

abstract class AbstractChoiceParam[T <: Choice, U] extends Param[U]

T

Type of choice items available to be chosen.

U

Type of stored value. This can be type T or a collection of type T.

Linear Supertypes
Param[U], AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. AbstractChoiceParam
  2. Param
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new AbstractChoiceParam()(implicit tag: scala.reflect.api.JavaUniverse.TypeTag[T])

    Permalink

Abstract Value Members

  1. abstract val description: Option[String]

    Permalink
    Definition Classes
    Param
  2. abstract val name: String

    Permalink
    Definition Classes
    Param
  3. abstract val parameterType: ParameterType

    Permalink
    Definition Classes
    Param
  4. abstract def replicate(name: String): Param[U]

    Permalink

    Used to extract public parameters in custom transformer.

    Used to extract public parameters in custom transformer.

    name

    name of replicated parameter

    returns

    replicated parameter

    Definition Classes
    Param
  5. abstract def valueFromJsMap(jsMap: Map[String, JsValue], graphReader: GraphReader): U

    Permalink
    Attributes
    protected
  6. abstract def valueToJson(value: U): JsValue

    Permalink
    Definition Classes
    Param

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. def ->(value: U): ParamPair[U]

    Permalink
    Definition Classes
    Param
  4. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def canEqual(other: Any): Boolean

    Permalink
    Definition Classes
    Param
  7. def choiceFromJson(chosenLabel: String, jsValue: JsValue, graphReader: GraphReader): T

    Permalink
    Attributes
    protected
  8. val choiceInstances: Seq[T]

    Permalink
  9. lazy val choiceInstancesByName: Map[String, T]

    Permalink
    Attributes
    protected
  10. def choiceToJson(value: T): JsObject

    Permalink
    Attributes
    protected
  11. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  12. def constraints: String

    Permalink
    Definition Classes
    Param
  13. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  14. def equals(other: Any): Boolean

    Permalink
    Definition Classes
    Param → AnyRef → Any
  15. def extraJsFields: Map[String, JsValue]

    Permalink

    Subclasses should overwrite this method if they want to add custom fields to json description.

    Subclasses should overwrite this method if they want to add custom fields to json description.

    Definition Classes
    AbstractChoiceParamParam
  16. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  17. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  18. def hashCode(): Int

    Permalink
    Definition Classes
    Param → AnyRef → Any
  19. val isGriddable: Boolean

    Permalink
    Definition Classes
    Param
  20. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  21. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  22. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  23. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  24. def serializeDefault(default: U): JsValue

    Permalink

    Describes default serialization of default values.

    Describes default serialization of default values.

    default

    Default value of parameter

    Attributes
    protected
    Definition Classes
    Param
  25. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  26. final def toJson(maybeDefault: Option[Any]): JsObject

    Permalink

    Describes json representation of this parameter.

    Describes json representation of this parameter.

    maybeDefault

    Optional default value of parameter. Should be of type Option[T], but we need to receive Any because Params have to use this method without knowing T.

    Definition Classes
    Param
  27. def toString(): String

    Permalink
    Definition Classes
    Param → AnyRef → Any
  28. def validate(value: U): Vector[DeepLangException]

    Permalink
    Definition Classes
    Param
  29. def valueFromJson(jsValue: JsValue, graphReader: GraphReader): U

    Permalink
    Definition Classes
    AbstractChoiceParamParam
  30. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  31. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  32. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Param[U]

Inherited from AnyRef

Inherited from Any

Ungrouped