Ejemplo n.º 1
0
        public c_CellArea(c_Fabric cFabric)
        {
            m_cFabric = cFabric;
            CommonFunctions Reader = new CommonFunctions();

            ADSReadJSon   = new ADSReadInterface("MAIN.sJsonDocCells");
            m_ListOfCells = new List <c_Cell>();

            ADSReadJSon.Registrate((c_Base_ADSReadInterface)this);
        }
Ejemplo n.º 2
0
        public c_ActionHandler(c_Fabric cFabric)
        {
            m_cFabric = cFabric;

            m_cCurrentAction = new c_Action();
            m_cLastAction    = new c_Action();

            m_cAdsWriteInterface = new ADSWriteInterface();
            ADSReadJSon          = new ADSReadInterface("MAIN.sJsonDocLastAction");
            ADSReadJSon.Registrate((c_Base_ADSReadInterface)this);
        }
Ejemplo n.º 3
0
        public c_Storage(c_Fabric cFabric)
        {
            m_cFabric             = cFabric;
            m_ListOfStoragePlaces = new List <c_StoragePlace>();
            CommonFunctions Reader = new CommonFunctions();
            string          sJSon  = "";
            string          sPathOfStorage;

            sPathOfStorage = c_Config.m_sStorageFile;

            Reader.ReadJSonFile(sPathOfStorage, ref sJSon);

            m_ListOfStoragePlaces = JsonConvert.DeserializeObject <List <c_StoragePlace> >(sJSon);
        }
Ejemplo n.º 4
0
 public c_ErrorHandler(c_Fabric cFabric)
 {
     m_cFabric = cFabric;
 }
 public c_WorkingScheduleHandler(c_Fabric cFabric)
 {
     m_cWorkingSchedules = new c_WorkingSchedule();
     m_cFabric           = cFabric;
     StackOfActions      = new Stack <c_Action>();
 }
Ejemplo n.º 6
0
 public c_MHS(c_Fabric cFabric)
 {
     m_cFabric  = cFabric;
     m_cStorage = new c_Storage(m_cFabric);
 }
Ejemplo n.º 7
0
        //konstruktor
        public c_MainViewModel()
        {
            // Config

            c_Config.m_sProtocolPath = "ysdfgb";

            CommonFunctions Reader = new CommonFunctions();

            string sJSon = "";
            string sPathOfConfig;
            string sRef = "";

            // Einlesen der Konfigurierten Pfade aus der confoig.json
            sPathOfConfig = "Config/Config.json";

            Reader.ReadJSonFile(sPathOfConfig, ref sJSon);
            Dictionary <string, string> dicConfig = JsonConvert.DeserializeObject <Dictionary <string, string> >(sJSon);


            if (dicConfig.TryGetValue("m_sSysDemStatusFile", out sRef) == false)
            {
                c_Config.bConfigErr = true; // Fehler
            }
            c_Config.m_sSysDemStatusFile = sRef;

            if (dicConfig.TryGetValue("m_sStorageFile", out sRef) == false)
            {
                c_Config.bConfigErr = true; // Fehler
            }
            c_Config.m_sStorageFile = sRef;

            if (dicConfig.TryGetValue("m_sRegenarationPathFile", out sRef) == false)
            {
                c_Config.bConfigErr = true; // Fehler
            }
            c_Config.m_sRegenarationPathFile = sRef;

            if (dicConfig.TryGetValue("m_sRegenarationPathApp", out sRef) == false)
            {
                c_Config.bConfigErr = true; // Fehler
            }
            c_Config.m_sRegenarationPathApp = sRef;

            if (dicConfig.TryGetValue("m_sProtocolPath", out sRef) == false)
            {
                c_Config.bConfigErr = true; // Fehler
            }
            c_Config.m_sProtocolPath = sRef;



            // FabrikTeileReal
            m_cFabric = new c_Fabric(this);


            //GUI Elemente
            m_cGuiAction = new c_Action();
            m_cGuiAction.m_eActionType = eAction.PutToCell;
            m_cGuiAction.m_sCell       = "A2";
            m_cGuiAction.m_iWPPlace    = 3;
            m_cGuiAction.m_sWPID       = "Muster1";
            m_GUIListCells             = new List <c_Cell> ();
            m_GUIStorage = new List <c_StoragePlace>();
            List <c_WorkingStep> m_GUIListOfWorkingSteps = new List <c_WorkingStep>();

            m_bAutoModeActive   = false;
            m_bManualModeActive = true;
            m_sAutoModeBtnText  = "Start";
            m_sMessageText      = "";
            m_sMessageText      = "Messages:";
            m_sAutoModeText     = "Automode: OFF";

            if (c_Config.bConfigErr) // Wenn die Confoig Datei einen Fehler hat eine Message anzeigen
            {
                AddToMessages("Error: Check Config!!!");
            }
            //Commands
            UpdateListsCommand  = new ICUpdateListsCommand(this);
            CreateActionCommand = new ICCreateAction(this);
            AutoModeCommand     = new ICAutoMode(this);
        }