C# Class VRP_CSharp.frmVRPSolver

Afficher le fichier Open project: Esri/arcobjects-sdk-community-samples Class Usage Examples

Méthodes publiques

Méthode Description
CreateSolverContext ( INetworkDataset networkDataset ) : INAContext

Create NASolver and NAContext

DisplayOutput ( ) : void

Get the VRP route output

GetDENetworkDataset ( INetworkDataset networkDataset ) : IDENetworkDataset

Geodatabase function: get network dataset

GetGPMessagesAsString ( IGPMessages gpMessages ) : string
LoadNANetworkLocations ( string strNAClassName, ITable inputTable ) : void

Load the input table and create field map to map fields from input table to NAClass

OpenNetworkDataset ( IWorkspace workspace, string featureDatasetName, string strNDSName ) : INetworkDataset

Geodatabase function: open network dataset

OpenWorkspace ( string strGDBName ) : IWorkspace

Geodatabase function: open workspace

RefreshMapDisplay ( ) : void
SetSolverSettings ( ) : void

Set solver settings

frmVRPSolver ( ) : System

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

Private Methods

Méthode Description
GetAttributeUnitType ( esriNetworkAttributeUnits units ) : string

Check whether the attribute unit is time or distance unit.

Initialize ( ) : void

Initialize the solver by calling the ArcGIS Network Analyst extension functions.

InitializeComponent ( ) : void

Required method for Designer support - do not modify the contents of this method with the code editor.

cmdSolve_Click ( object sender, EventArgs e ) : void

Call VRP solver and display the results

Method Details

CreateSolverContext() public méthode

Create NASolver and NAContext
public CreateSolverContext ( INetworkDataset networkDataset ) : INAContext
networkDataset INetworkDataset Input network dataset
Résultat INAContext

DisplayOutput() public méthode

Get the VRP route output
public DisplayOutput ( ) : void
Résultat void

Dispose() protected méthode

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
Résultat void

GetDENetworkDataset() public méthode

Geodatabase function: get network dataset
public GetDENetworkDataset ( INetworkDataset networkDataset ) : IDENetworkDataset
networkDataset INetworkDataset Input network dataset
Résultat IDENetworkDataset

GetGPMessagesAsString() public méthode

public GetGPMessagesAsString ( IGPMessages gpMessages ) : string
gpMessages IGPMessages GPMessages container
Résultat string

LoadNANetworkLocations() public méthode

Load the input table and create field map to map fields from input table to NAClass
public LoadNANetworkLocations ( string strNAClassName, ITable inputTable ) : void
strNAClassName string NAClass name
inputTable ITable Input table
Résultat void

OpenNetworkDataset() public méthode

Geodatabase function: open network dataset
public OpenNetworkDataset ( IWorkspace workspace, string featureDatasetName, string strNDSName ) : INetworkDataset
workspace IWorkspace Input workspace
featureDatasetName string
strNDSName string Dataset name
Résultat INetworkDataset

OpenWorkspace() public méthode

Geodatabase function: open workspace
public OpenWorkspace ( string strGDBName ) : IWorkspace
strGDBName string Input file name
Résultat IWorkspace

RefreshMapDisplay() public méthode

public RefreshMapDisplay ( ) : void
Résultat void

SetSolverSettings() public méthode

Set solver settings
public SetSolverSettings ( ) : void
Résultat void

frmVRPSolver() public méthode

public frmVRPSolver ( ) : System
Résultat System