コード例 #1
0
        //*Class Constructor
        public JunctionAgent(NetworkData A, Strategies B, string SN, int NoS)
            : base(A, B)
        {
            SignalNode = SN;
            NoOfStages = NoS;

            int[] TempDummy = new int[2];       //Note that this is the initial stage and stage length assumption
            TempDummy[0] = 1;
            TempDummy[1] = 10;
            NextStage.Add(TempDummy);
        }
コード例 #2
0
        //*Class Constructor
        public Coordinate(string FileName, Strategies St, string ip, int prt)
        {
            Strat = St;
            IP    = ip;
            Port  = prt;

            NetworkStruct = new XmlDocument();
            NetworkStruct.Load(FileName);

            XmlNode PModel = NetworkStruct.GetElementsByTagName("ParamicsModel")[0];

            ParamicsPath = PModel.SelectSingleNode("path").FirstChild.Value;
        }
コード例 #3
0
 //*Class Constructor
 public coordinateSIT(string FileName, Strategies St, string ip, int prt)
     : base(FileName, St, ip, prt)
 {
 }
コード例 #4
0
 //*Constructor
 public LaneAgent(NetworkData A, Strategies B) : base(A, B)
 {
 }
コード例 #5
0
 //*class construnctor
 public Agents(NetworkData A, Strategies B)
 {
     NetDat = A; Strat = B;
 }