arc.cs

来自「petriNet model」· CS 代码 · 共 66 行

CS
66
字号
using System;

namespace MyPetriNet
{
		/// <summary>
		/// Arc--输入输出弧。
		/// </summary>
		public class Arc
		{
			/// <summary>
			/// false:from Place to Transition
			/// true :from Transition to Place
			/// </summary>
			public bool _toPlace; 
			/// <summary>
			/// arc的头和尾分别指向的Place和Transition
			/// </summary>
			private int _place; 
			private int _transition; 

			public Arc()
			{
			}

			/// <summary>
			/// false:from Place to Transition
			/// true :from Transition to Place
			/// </summary>
			public bool toPlace
			{
				set
				{
					_toPlace=value;
				}
				get
				{
					return _toPlace;
				}
			}
			public int place
			{
				set
				{
					_place=value;
				}
				get
				{
					return _place;
				}
			}
			public int transition
			{
				set
				{
					_transition=value;
				}
				get
				{
					return _transition;
				}
			}

		}
	}

⌨️ 快捷键说明

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