Exemplo n.º 1
0
 //*Class Constructor
 public NetworkDataSIT(string NPath, string NIP, int NPort, int NoOfAgents, int NoOfJuntions, string VdatTab, string SITtab)
     : base(NPath, NIP, NPort, NoOfAgents, NoOfJuntions)
 {
     SIT = new ParamicsPuppetMaster.SITData("paramicsdb", "localhost", "root", "trg", SITtab, NoOfAgents, NoOfJuntions);
     PDB = new ParamicsPuppetMaster.ParamicsDBiLite("paramicsdb", "localhost", "root", "trg", VdatTab);
     LTB = new ParamicsPuppetMaster.LoopTable("paramicsdb", "localhost", "root", "trg", "LoopTable");
 }
Exemplo n.º 2
0
 //*Class Constructor
 public NetworkData(string NPath, string NIP, int NPort, int NoOfAgents, int NoOfJuntions)
     : base(NPath, NIP, NPort)
 {
     EN = new ParamicsPuppetMaster.EditNodes(Path);
     EL = new ParamicsPuppetMaster.EditLink(Path);
     EZ = new ParamicsPuppetMaster.EditZones(Path);
     //PDB = new ParamicsPuppetMaster.ParamicsDBiLite("paramicsdb", "localhost", "root", "trg", "VehicleDataSimple");
     PDB = new ParamicsPuppetMaster.ParamicsDBiLite("paramicsdb", "localhost", "root", "trg", "LinkTurningMovements");
     CVD = new ParamicsPuppetMaster.CollateVehicelData();
     BDT = new ParamicsPuppetMaster.BidDataTable("paramicsdb", "localhost", "root", "trg", NoOfAgents, NoOfJuntions);
 }
Exemplo n.º 3
0
 protected void IVPextractWiggle(ParamicsPuppetMaster.ParamicsDBiLite PDBin, string[] source, double[] Xsig, double[] Vsig, double[] SenPC)
 {
     if (Xsig.Length != Vsig.Length || Xsig.Length != SenPC.Length || Xsig.Length != source.Length)
     {
         throw new Exception("The lengths of the array input to this function do not match");
     }
     ParamicsPuppetMaster.ReadSnapshotFileLite RSN = new ParamicsPuppetMaster.ReadSnapshotFileLite(Path);
     ParamicsPuppetMaster.LiteToPDB            TDB = new ParamicsPuppetMaster.LiteToPDB(RSN, EN, EL, PDBin);
     for (int i = 0; i < Xsig.Length; i++)
     {
         TDB.AddLineToDBStoch(source[i], Xsig[i], Vsig[i], SenPC[i]);
     }
 }
Exemplo n.º 4
0
 protected void IVPextract(ParamicsPuppetMaster.ParamicsDBiLite PDBin)
 {
     ParamicsPuppetMaster.ReadSnapshotFileLite RSN = new ParamicsPuppetMaster.ReadSnapshotFileLite(Path);
     ParamicsPuppetMaster.LiteToPDB            TDB = new ParamicsPuppetMaster.LiteToPDB(RSN, EN, EL, PDBin);
     TDB.AddLineToDB();
 }