//*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"); }
//*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); }
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]); } }
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(); }