Click here to Skip to main content
13,146,934 members (78,568 online)
Click here to Skip to main content

Stats

155.3K views
12.9K downloads
74 bookmarked
Posted 3 Jan 2008

Dijkstra:Shortest Route Calculation - Object Oriented

, 3 Jan 2008
Calculation of the shortest path between x points
Gui.exe
RouteEngine.dll
Gui
bin
Debug
Gui.exe
Gui.pdb
Gui.vshost.exe
RouteEngine.dll
RouteEngine.pdb
Properties
RouteCalc
bin
Debug
RouteCalc.exe
RouteCalc.vshost.exe
RouteCalc.vshost.exe.manifest
Properties
RouteEngine
bin
Debug
RouteEngine.dll
RouteEngine.pdb
Properties
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace RouteEngine
{
    public class Connection
    {
        Location _a, _b;
        int _weight;
        bool selected=false;

        public bool Selected
        {
            get { return selected; }
            set { selected = value; }
        }

        public Connection(Location a, Location b, int weight)
        {
            this._a = a;
            this._b = b;
            this._weight = weight;
        }
        public Location B
        {
            get { return _b; }
            set { _b = value; }
        }

        public Location A
        {
            get { return _a; }
            set { _a = value; }
        }       

        public int Weight
        {
            get { return _weight; }
            set { _weight = value; }
        }


    }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

No Biography provided

You may also be interested in...

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web03 | 2.8.170915.1 | Last Updated 3 Jan 2008
Article Copyright 2008 by Michael Demeersseman
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid