MeasureDSL

folap.modeldefinition.MeasureDSL
object MeasureDSL

A domain-specific language (DSL) for creating Measures

This DSL enforces type safety by accepting only specific numeric types defined in MeasureType.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
MeasureDSL.type

Members list

Type members

Classlikes

class MeasureName(val name: String)

Intermediate representation of a measure's name.

Intermediate representation of a measure's name.

Value parameters

name

the name assigned to the measure

Attributes

Supertypes
class Object
trait Matchable
class Any
case class MeasureWord()

Class that provides the named infix method to specify a measure name.

Class that provides the named infix method to specify a measure name.

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Value members

Concrete methods

DSL initializer.

DSL initializer.

Starts the construction of a Measure using the measure named "..." as Type syntax.

Attributes

Returns

a MeasureWord instance

Extensions

Extensions

extension (m: MeasureName)
infix def as(typology: MeasureType): Measure

Extension method for Measurename to complete a Measure definition by assigning its typology.

Extension method for Measurename to complete a Measure definition by assigning its typology.

Value parameters

typology

the static type of the measure (e.g., Int, Long, Float, Double)

Attributes

Returns

a Measure instance with the specified name and typology