Class BasicConstraint<TNode, TConfiguration, TEnergyData>
Inheritance
System.Object
BasicConstraint<TNode, TConfiguration, TEnergyData>
Assembly: Edgar.dll
Syntax
public class BasicConstraint<TNode, TConfiguration, TEnergyData> : Object, INodeConstraint<ILayout<TNode, TConfiguration>, TNode, TConfiguration, TEnergyData> where TConfiguration : IEnergyConfiguration<TEnergyData> where TEnergyData : IBasicConstraintData
Type Parameters
Name |
Description |
TNode |
|
TConfiguration |
|
TEnergyData |
|
Constructors
BasicConstraint(IRoomShapeGeometry<TConfiguration>, IConfigurationSpaces<TConfiguration>, ILevelDescription<TNode>, Boolean)
Declaration
public BasicConstraint(IRoomShapeGeometry<TConfiguration> roomShapeGeometry, IConfigurationSpaces<TConfiguration> configurationSpaces, ILevelDescription<TNode> mapDescription, bool optimizeCorridors)
Parameters
Methods
ComputeEnergyData(ILayout<TNode, TConfiguration>, TNode, TConfiguration, ref TEnergyData)
Declaration
public bool ComputeEnergyData(ILayout<TNode, TConfiguration> layout, TNode node, TConfiguration configuration, ref TEnergyData energyData)
Parameters
Type |
Name |
Description |
ILayout<TNode, TConfiguration> |
layout |
|
TNode |
node |
|
TConfiguration |
configuration |
|
TEnergyData |
energyData |
|
Returns
Type |
Description |
System.Boolean |
|
UpdateEnergyData(ILayout<TNode, TConfiguration>, TNode, TConfiguration, TConfiguration, TNode, TConfiguration, ref TEnergyData)
Declaration
public bool UpdateEnergyData(ILayout<TNode, TConfiguration> layout, TNode perturbedNode, TConfiguration oldConfiguration, TConfiguration newConfiguration, TNode node, TConfiguration configuration, ref TEnergyData energyData)
Parameters
Type |
Name |
Description |
ILayout<TNode, TConfiguration> |
layout |
|
TNode |
perturbedNode |
|
TConfiguration |
oldConfiguration |
|
TConfiguration |
newConfiguration |
|
TNode |
node |
|
TConfiguration |
configuration |
|
TEnergyData |
energyData |
|
Returns
Type |
Description |
System.Boolean |
|
UpdateEnergyData(ILayout<TNode, TConfiguration>, ILayout<TNode, TConfiguration>, TNode, ref TEnergyData)
Declaration
public bool UpdateEnergyData(ILayout<TNode, TConfiguration> oldLayout, ILayout<TNode, TConfiguration> newLayout, TNode node, ref TEnergyData energyData)
Parameters
Type |
Name |
Description |
ILayout<TNode, TConfiguration> |
oldLayout |
|
ILayout<TNode, TConfiguration> |
newLayout |
|
TNode |
node |
|
TEnergyData |
energyData |
|
Returns
Type |
Description |
System.Boolean |
|
Implements