Example #1
0
 public chain_path(MFrm frm)
 {
     mainForm          = frm;
     cmdSensorGraphics = new StringBuilder();
     path       = new List <string>();
     path_Objs  = new List <STKObject>();
     colorIndex = 0;
 }
Example #2
0
 public CSimulationManager(MFrm fm)
 {
     view = fm;
     // Initialize the federation execution
     federation = new RACoN.Federation.CFederationExecution();
     federation.FederationExecutionName = "CoSimulationSystem";
     federation.FDD = @".\CoSimulationSystem.fed";
     // Initialize the application-specific federate
     federate = new CSTK_demonstration(this);
 }
Example #3
0
 public STKScenObjs(MFrm it)
 {
     view              = it;
     this.stkObjs      = new List <STKObject>();
     all_path          = new List <chain_path>(); //保存全部的在线业务流
     LJ_sensorFilePath = Directory.GetCurrentDirectory() + "\\演示单元模型库\\Sensor0.sn";
     LineTargets       = new List <string>();
     stkcities         = new List <City>();
     msglist           = new List <Msg>();
 }
Example #4
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            //Application.Run(new Form1());//已被while替换,为了能处理RTI的消息
            MFrm frm = new MFrm();

            frm.Show();
            System.Threading.Thread.CurrentThread.Name = "MainThread";
            while (frm.Created)
            {
                if (frm.simulation != null)
                {
                    frm.DoSimulation();
                }
                Application.DoEvents();
                System.Threading.Thread.Sleep(20);//important!防止while循环占用CPU过高
            }
        }
Example #5
0
 /// <summary>
 /// 构造函数,在mainfrm load的时候调用
 /// </summary>
 public excelhelp(MFrm it)
 {
     view     = it;
     filepath = Directory.GetCurrentDirectory() + "\\path.csv";
 }
Example #6
0
 public chain_pathex(MFrm it) : base(it)
 {
 }
Example #7
0
 public ShowUsers(MFrm it)
 {
     view = it;
     InitializeComponent();
 }
Example #8
0
 public Django(MFrm fm)
 {
     view = fm;
     InitializeComponent();
 }
Example #9
0
 public wincmd(MFrm view)
 {
     father = view;
     InitializeComponent();
 }