Exemplo n.º 1
0
 public chain_path(MFrm frm)
 {
     mainForm          = frm;
     cmdSensorGraphics = new StringBuilder();
     path       = new List <string>();
     path_Objs  = new List <STKObject>();
     colorIndex = 0;
 }
Exemplo n.º 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);
 }
Exemplo n.º 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>();
 }
Exemplo n.º 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过高
            }
        }
Exemplo n.º 5
0
 /// <summary>
 /// 构造函数,在mainfrm load的时候调用
 /// </summary>
 public excelhelp(MFrm it)
 {
     view     = it;
     filepath = Directory.GetCurrentDirectory() + "\\path.csv";
 }
Exemplo n.º 6
0
 public chain_pathex(MFrm it) : base(it)
 {
 }
Exemplo n.º 7
0
 public ShowUsers(MFrm it)
 {
     view = it;
     InitializeComponent();
 }
Exemplo n.º 8
0
 public Django(MFrm fm)
 {
     view = fm;
     InitializeComponent();
 }
Exemplo n.º 9
0
 public wincmd(MFrm view)
 {
     father = view;
     InitializeComponent();
 }