documentationfor yFiles for HTML 2.6

Usages of PenaltySettings

Properties

penaltySettingsin EdgeRouterEdgeLayoutDescriptorGets or sets the PenaltySettings used for this edge.

Fields

OPTIMIZATION_BALANCEDin PenaltySettingsOptimization strategy that balances bends and edge crossings in the edge routes.
OPTIMIZATION_EDGE_BENDSin PenaltySettingsOptimization strategy that minimizes bends in the edge routes.
OPTIMIZATION_EDGE_CROSSINGSin PenaltySettingsOptimization strategy that minimizes edge crossings in the edge routes.
OPTIMIZATION_EDGE_LENGTHSin PenaltySettingsOptimization strategy that minimizes the length of the edge routes.

Method Return Values

createCopy ()in PenaltySettingsCreates a copy of this PenaltySettings instance.
newInstance ()in PenaltySettingsCreates a new instance of PenaltySettings.

Method Parameters

EdgeLayoutDescriptor ()in EdgeRouterEdgeLayoutDescriptorCreates a new instance of an EdgeRouterEdgeLayoutDescriptor with the default settings.
decreasePenaltySettings (PenaltySettings, number, PathSearchContext)in PathSearchDecreases the given penalty settings for the current edge.