⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 road.cs

📁 This is a document about routing [a spatial analysis - network]
💻 CS
字号:
using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;

namespace MapService
{
    public class Road
    {
        private string  name;
        private ArrayList segments;

        public string  Name
        {
            get { return name; }
            set { name = value; }
        }
        public ArrayList Segments
        {
            get { return segments; }
            set { segments = value; }
        }
        public Road(string name)
        {
            this.name = name;
            segments = new ArrayList();
        }
    }

    public class Segment
    {
        private int fromleft;
        private int toleft;
        private int fromright;
        private int toright;
        private ArrayList nodes;
        private int len;

        public int FromLeft
        {
            get { return fromleft; }
            set { fromleft = value; }
        }
        public int ToLeft
        {
            get { return toleft; }
            set { toleft = value; }
        }
        public int FromRight
        {
            get { return fromright; }
            set { fromright = value; }
        }
        public int ToRight
        {
            get { return toright; }
            set { toright = value; }
        }
        public int Len
        {
            get { return len; }
            set { len = value; }
        }
        public ArrayList Nodes
        {
            get { return nodes; }
            set { nodes = value; }
        }
        public Segment(int fromleft, int toleft, int fromright, int toright)
        {
            this.fromleft = fromleft;
            this.toleft = toleft;
            this.fromright = fromright;
            this.toright = toright;
            nodes = new ArrayList();
        }
    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -