Пример #1
0
 /// <summary>
 /// Constructor with the initial parameters.
 /// </summary>
 /// <param name="env">the environment object.</param>
 public CommandManager(ApplicationEnvironment env)
 {
     m_env = env;
     s_instance = this;
 }
Пример #2
0
 /// <summary>
 /// Creates the simulation parameter stub with the simulation parameter ID.
 /// </summary>
 /// <param name="cManager">the CommandManager associated this object.</param>
 /// <param name="parameterID">the simulation parameter ID</param>
 public SimulationParameterStub(CommandManager cManager, string parameterID)
 {
     this.m_cManager = cManager;
     this.m_parameterID = parameterID;
 }
Пример #3
0
 /// <summary>
 /// Creates the stepper stub with the current simulation parameter and the stepper ID.
 /// </summary>
 /// <param name="cManager">CommandManager</param>
 /// <param name="ID">Job ID.</param>
 public StepperStub(CommandManager cManager, string ID)
 {
     this.m_cManager = cManager;
     this.m_env = cManager.Environment;
     this.m_ID = ID;
 }
Пример #4
0
 /// <summary>
 /// Creates the new "LoggerStub" instance with the full PN.
 /// </summary>
 /// <param name="cManager">the CommandManager assciated this object.</param>
 /// <param name="fullPN">the full PN</param>
 public LoggerStub(CommandManager cManager, string fullPN)
 {
     this.m_cManager = cManager;
     this.m_fullPN = fullPN;
 }
Пример #5
0
            /// <summary>
            /// Delete the job stub.
            /// </summary>
            public void Delete()
            {
                if (!m_cManager.JobManager.GroupDic.ContainsKey(m_groupName))
                    return;

                m_cManager.JobManager.GroupDic[m_groupName].DeleteJob(m_id);
                this.m_id = 0;
                this.m_job = null;
                this.m_cManager = null;
            }
Пример #6
0
 /// <summary>
 /// Constructor with the initial parameters.
 /// </summary>
 /// <param name="manager">CommandManager</param>
 /// <param name="groupName">the group name.</param>
 /// <param name="id">the job id.</param>
 public JobStub(CommandManager manager, string groupName, int id)
 {
     this.m_cManager = manager;
     m_id = id;
     m_groupName = groupName;
     if (m_cManager.JobManager.GroupDic.ContainsKey(groupName))
         m_job = m_cManager.JobManager.GroupDic[groupName].GetJob(id);
 }
Пример #7
0
 /// <summary>
 /// Creates the new "EntityStub" instance with the full ID.
 /// </summary>
 /// <param name="cManager">CommandManager instance to associate</param>
 /// <param name="fullID">the full ID</param>
 public EntityStub(CommandManager cManager, string fullID)
 {
     this.m_cManager = cManager;
     this.m_fullID = fullID;
 }
Пример #8
0
 /// <summary>
 /// Constructors
 /// </summary>
 public ApplicationEnvironment()
 {
     m_dManager = new DataManager(this);
     m_lManager = new LogManager(this);
     m_gManager = new LoggerManager(this);
     m_pManager = new PluginManager(this);
     m_aManager = new ActionManager(this);
     m_jManager = new JobManager(this);
     m_rManager = new ReportManager(this);
     m_cManager = new CommandManager(this);
     m_console = new ConsoleManager(this);
     m_dmManager = new DMDescriptorKeeper(Util.GetDMDirs());
 }