Skip to content

BH.oM.Analytical.Fragments.RoutingFragment

Fragment used in the computation of shortest paths.

Class structure

Implemented interfaces and base types

The RoutingFragment is inheriting from the following base type(s) and implements the following interfaces:

Properties

Defining properties

The following properties are defined on the class

Name Type Description Quantity
MinCostToSource Nullable<double> - -
Cost Nullable<double> - -
Visited bool - -
NearestToSource Guid - -
StraightLineDistanceToTarget Nullable<double> - -

Code and Schema

C# implementation

C#
public class RoutingFragment : BH.oM.Base.IFragment, BH.oM.Base.IObject

Assembly: Analytical_oM.dll

The C# class definition is available on github:

All history and changes of the class can be found by inspection the history.

JSON Schema implementation

The object is defined as a JSON schema. You can validate a JSON instance against this schema by reference. To do this, use the schema reference below in a validator like this one.

JSON Schema
{
 "$ref" : "https://raw.githubusercontent.com/BHoM/BHoM_JSONSchema/develop/Analytical_oM/Fragments/RoutingFragment.json"
}

The JSON Schema is available on github here: