class InterDimensionalVariationGraph (View source)

The inter dimensional variation graph domain model Represents the specialization and generalization mechanism between dimension space points

Properties

protected WeightedDimensionSpacePoint>|null $weightedDimensionSpacePoints

Weighed dimension space points, indexed by identity (DSP) hash

protected DimensionSpacePointSet>|null $indexedGeneralizations

Generalization dimension space point sets, indexed by specialization hash

protected DimensionSpacePointSet>|null $indexedSpecializations

Specialization dimension space point sets, indexed by generalization hash

protected DimensionSpacePoint>>|null $weightedGeneralizations

Weighed generalizations, indexed by specialization hash and relative weight

protected DimensionSpacePoint>>>|null $weightedSpecializations

Weighed specializations, indexed by generalization hash, relative weight and specialization hash

protected DimensionSpacePoint> $primaryGeneralizations

Primary generalization dimension space points, indexed by specialization hash

protected $weightNormalizationBase

Methods

__construct(ContentDimensionSourceInterface $contentDimensionSource, ContentDimensionZookeeper $contentDimensionZookeeper)

No description

DimensionSpacePointSet
getDimensionSpacePoints()

No description

array
WeightedDimensionSpacePoint|null
WeightedDimensionSpacePoint|null
getWeightedDimensionSpacePointByHash(string $hash)

No description

array
getRootGeneralizations()

Returns the root generalizations indexed by hash

int
void
initializeVariations()

No description

void
initializeVariationsForDimensionSpacePointPair(WeightedDimensionSpacePoint $specialization, WeightedDimensionSpacePoint $generalization, array $normalizedVariationWeights, array $indexedGeneralizations, array $indexedSpecializations)

No description

DimensionSpacePointSet
getIndexedSpecializations(DimensionSpacePoint $generalization)

Returns specializations of a dimension space point

DimensionSpacePointSet
getIndexedGeneralizations(DimensionSpacePoint $specialization)

Returns generalizations of a dimension space point

array
getWeightedSpecializations(DimensionSpacePoint $generalization)

Returns specializations of a dimension space point indexed by relative weight and specialization hash

array
getWeightedGeneralizations(DimensionSpacePoint $specialization)

Returns generalizations of a dimension space point indexed by relative weight

DimensionSpacePointSet
getSpecializationSet(DimensionSpacePoint $origin, bool $includeOrigin = true, DimensionSpacePointSet $excludedSet = null)

No description

DimensionSpacePoint|null
getPrimaryGeneralization(DimensionSpacePoint $specialization)

No description

VariantType
getVariantType(DimensionSpacePoint $subject, DimensionSpacePoint $object)

No description

Details

__construct(ContentDimensionSourceInterface $contentDimensionSource, ContentDimensionZookeeper $contentDimensionZookeeper)

No description

Parameters

ContentDimensionSourceInterface $contentDimensionSource
ContentDimensionZookeeper $contentDimensionZookeeper

protected void initializeWeightedDimensionSpacePoints()

No description

Return Value

void

DimensionSpacePointSet getDimensionSpacePoints()

No description

Return Value

DimensionSpacePointSet

array getWeightedDimensionSpacePoints()

No description

Return Value

array

WeightedDimensionSpacePoint|null getWeightedDimensionSpacePointByDimensionSpacePoint(DimensionSpacePoint $point)

No description

Parameters

DimensionSpacePoint $point

Return Value

WeightedDimensionSpacePoint|null

WeightedDimensionSpacePoint|null getWeightedDimensionSpacePointByHash(string $hash)

No description

Parameters

string $hash

Return Value

WeightedDimensionSpacePoint|null

array getRootGeneralizations()

Returns the root generalizations indexed by hash

Return Value

array

protected int determineWeightNormalizationBase()

No description

Return Value

int

protected void initializeVariations()

No description

Return Value

void

protected void initializeVariationsForDimensionSpacePointPair(WeightedDimensionSpacePoint $specialization, WeightedDimensionSpacePoint $generalization, array $normalizedVariationWeights, array $indexedGeneralizations, array $indexedSpecializations)

No description

Parameters

WeightedDimensionSpacePoint $specialization
WeightedDimensionSpacePoint $generalization
array $normalizedVariationWeights
array $indexedGeneralizations
array $indexedSpecializations

Return Value

void

DimensionSpacePointSet getIndexedSpecializations(DimensionSpacePoint $generalization)

Returns specializations of a dimension space point

Parameters

DimensionSpacePoint $generalization

Return Value

DimensionSpacePointSet

DimensionSpacePointSet getIndexedGeneralizations(DimensionSpacePoint $specialization)

Returns generalizations of a dimension space point

Parameters

DimensionSpacePoint $specialization

Return Value

DimensionSpacePointSet

array getWeightedSpecializations(DimensionSpacePoint $generalization)

Returns specializations of a dimension space point indexed by relative weight and specialization hash

Parameters

DimensionSpacePoint $generalization

Return Value

array

array getWeightedGeneralizations(DimensionSpacePoint $specialization)

Returns generalizations of a dimension space point indexed by relative weight

Parameters

DimensionSpacePoint $specialization

Return Value

array

DimensionSpacePointSet getSpecializationSet(DimensionSpacePoint $origin, bool $includeOrigin = true, DimensionSpacePointSet $excludedSet = null)

No description

Parameters

DimensionSpacePoint $origin
bool $includeOrigin
DimensionSpacePointSet $excludedSet

Return Value

DimensionSpacePointSet

Exceptions

DimensionSpacePointNotFound

DimensionSpacePoint|null getPrimaryGeneralization(DimensionSpacePoint $specialization)

No description

Parameters

DimensionSpacePoint $specialization

Return Value

DimensionSpacePoint|null

VariantType getVariantType(DimensionSpacePoint $subject, DimensionSpacePoint $object)

No description

Parameters

DimensionSpacePoint $subject
DimensionSpacePoint $object

Return Value

VariantType