ANTAREX API

Clava API

LARA API

LARA Common Language API

(.js)
laraImport("antarex.margot.config.MargotDataFeature");

(.lara)
import antarex.margot.config.MargotDataFeature;

MargotDataFeature

Constructor

MargotDataFeature

new MargotDataFeature(name, type, [validity = MargotValidity.NONE])

Class that represents a data feature in mARGOt.

Parameters

name: string - the name of the variable that holds the value of the data feature
type: string - the type of the variable that holds the value of the data feature
validity: MargotValidity - the comparison used to test the validity (optional)

Instance Members

getName

getName()

Returns the name of this data feature.


getType

getType()

Returns the type of this data feature.


getValidity

getValidity()

Returns the validity comparison of this data feature.


MargotDataFeatureGroup

Constructor

MargotDataFeatureGroup

new MargotDataFeatureGroup(distanceType)

Class that represents a group of data features in mARGOt.

Parameters

distanceType: MargotDistanceType - the type of distance calculation for data features

Instance Members

addFeature

addFeature(name, type, [validity = MargotValidity.NONE])

Adds a new data feature to this group.

Parameters

name: string - the name of the variable that holds the value of the data feature
type: string - the type of the variable that holds the value of the data feature
validity: MargotValidity - the comparison used to test the validity (optional)

getFeatures

getFeatures()

Returns the array of data features in this group.


setDistanceType

setDistanceType(distanceType)

Sets the type of distance calculation of this feature group.

Parameters

distanceType: MargotDistanceType - the type of distance calculation for data features