Interface IRelation<T>
A constraint between two MR objects that is used to filter data in a query
Inherited Members
Namespace: Unity.MARS.Query
Assembly: Unity.MARS.Interfaces.dll
Syntax
public interface IRelation<T> : IRelation, IRelationBase, IConditionBase, IRequiresTraits<T>, IRequiresTraits
Type Parameters
| Name | Description |
|---|---|
| T | The type of data to filter against |
Properties
child1TraitName
The trait to test against for the first child
Declaration
string child1TraitName { get; }
Property Value
| Type | Description |
|---|---|
| string |
child2TraitName
The trait to test against for the second child
Declaration
string child2TraitName { get; }
Property Value
| Type | Description |
|---|---|
| string |
Methods
RateDataMatch(ref T, ref T)
Compares the given trait data to the filter function
Declaration
float RateDataMatch(ref T child1Data, ref T child2Data)
Parameters
| Type | Name | Description |
|---|---|---|
| T | child1Data | The data being filtered against for the first child |
| T | child2Data | The data being filtered against for the second child |
Returns
| Type | Description |
|---|---|
| float | A number from 0 to 1 indicating how well a set of data matches |