Click or drag to resize

Arc Class

An arc is defined with its two extremity nodes StartNode and EndNode therefore it is oriented. It is also characterized by a crossing factor named 'Weight'. This value represents the difficulty to reach the ending node from the starting one.
Inheritance Hierarchy
SystemObject
  PathfindingArc

Namespace:  Pathfinding
Assembly:  RebornBuddy (in RebornBuddy.exe) Version: 3.3.1; net-4.5.win32; release
Syntax
C#
[SerializableAttribute]
public class Arc

The Arc type exposes the following members.

Constructors
  NameDescription
Public methodArc
Arc constructor.
Top
Properties
  NameDescription
Public propertyCost
Gets the cost of moving through the arc. Can be overriden when not simply equals to Weight*Length.
Public propertyEndNode
Gets/Sets the node to which the arc ends.
Public propertyLength
Gets arc's length.
Public propertyPassable
Gets/Sets the functional state of the arc. 'true' means that the arc is in its normal state. 'false' means that the arc will not be taken into account (as if it did not exist or if its cost were infinite).
Public propertyStartNode
Gets/Sets the node from which the arc starts.
Public propertyWeight
Sets/Gets the weight of the arc. This value is used to determine the cost of moving through the arc.
Top
Methods
  NameDescription
Protected methodCalculateLength
Performs the calculous that returns the arc's length Can be overriden for derived types of arcs that are not linear.
Public methodEquals
Object.Equals override. Tells if two arcs are equal by comparing StartNode and EndNode.
(Overrides ObjectEquals(Object).)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Object.GetHashCode override.
(Overrides ObjectGetHashCode.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns the textual description of the arc. object.ToString() override.
(Overrides ObjectToString.)
Top
See Also