Class Relation<T1, T2>
Template for a relation between two proxies that uses more than one trait per proxy
Inheritance
Relation<T1, T2>
Inherited Members
Namespace: Unity.MARS
Syntax
public abstract class Relation<T1, T2> : RelationBase, ISimulatable, IRelation<T1, T2>, IMultiTypeRelation, IRelationBase, IConditionBase, IRelationRatingMethod<T1, T2> where T1 : struct, IRelationChildValues where T2 : struct, IRelationChildValues
Type Parameters
| Name | Description |
|---|---|
| T1 | The type containing the first child's traits |
| T2 | The type containing the second child's traits |
Properties
Child1TraitNames
Declaration
public abstract string[] Child1TraitNames { get; }
Property Value
| Type | Description |
|---|---|
| String[] |
Implements
Child2TraitNames
Declaration
public abstract string[] Child2TraitNames { get; }
Property Value
| Type | Description |
|---|---|
| String[] |
Implements
Methods
RateDataMatch(ref T1, ref T2)
Declaration
public abstract float RateDataMatch(ref T1 child1, ref T2 child2)
Parameters
| Type | Name | Description |
|---|---|---|
| T1 | child1 | |
| T2 | child2 |
Returns
| Type | Description |
|---|---|
| Single |