ElementaryCondition: R6 class representing an elementary condition.

Description Details Public fields Methods

Description

An elementary condition is a filter condition on a single attribute.

Details

This class stores the attribute, the filter value, and for dominance variables whether the value is a lower- or upper bound.

Public fields

attribute

the name of the attribute we filter on

value

the constant in the filter condition

isLowerBound

for dominance attributes whether the filter condition is a lower-bound or upper-bound

attributeType

the type of the attribute (ind, sim, or dom)

alpha

for similarity attributes the alpha parameter

beta

for similarity attributes the beta parameter

Methods

Public methods


Method new()

Create a new ElementaryCondition object.

Usage
ElementaryCondition$new(attribute, value, it, isLowerBound = NA)
Arguments
attribute

the attribute we filter on

value

the value we use in the filter condition

it

the information table to use

isLowerBound

[optional] for dominance operators, whether the filter condition is a lower- or upper bound


Method elementCover()

Method to calculate the set of objects matching this elementary condition.

Usage
ElementaryCondition$elementCover(it)
Arguments
it

the information table to use

Returns

the set of matching objects - set of object names


Method print()

Print method.

Usage
ElementaryCondition$print()

Method toString()

toString method.

Usage
ElementaryCondition$toString()

Method equals()

Method to compare two ElementaryConditions.

Usage
ElementaryCondition$equals(other)
Arguments
other

the other elementary condition to compare to

Returns

a single boolean value


Method clone()

The objects of this class are cloneable with this method.

Usage
ElementaryCondition$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.


jaspeir/NIJ_Tabitha documentation built on June 3, 2020, 12:38 a.m.