Class SimulationConfigImpl

    • Constructor Detail

      • SimulationConfigImpl

        public SimulationConfigImpl()
      • SimulationConfigImpl

        public SimulationConfigImpl​(java.lang.Object config)
    • Method Detail

      • getComponentSimState

        public java.lang.String getComponentSimState​(java.lang.String name)
        Description copied from interface: SimulationConfig
        Returns the state of the specified by the name parameter Component
        Specified by:
        getComponentSimState in interface SimulationConfig
        Parameters:
        name - The name of the component
        Returns:
        the simulation state of the component as String or null if undefined
      • getHook

        public HookConfig getHook​(java.lang.String name)
        Description copied from interface: SimulationConfig
        Return the simulation hook config object for the specified by name component
        Specified by:
        getHook in interface SimulationConfig
        Parameters:
        name - The name of the component which hook configuration to get
        Returns:
        The simulation hook specified by the name parameter or null if the component is not found. If it is found but the requested HookConfig does not exist then it is created and returned.
      • getProxyALName

        public java.lang.String getProxyALName()
        Description copied from interface: SimulationConfig
        Returns the name of the AL set as a proxy.
        Specified by:
        getProxyALName in interface SimulationConfig
        Returns:
        The name of the AL used as proxy or null if nothing was set.
      • setComponentSimState

        public void setComponentSimState​(java.lang.String name,
                                         java.lang.String state)
        Description copied from interface: SimulationConfig
        Set the state of the Component specified by the name parameter
        Specified by:
        setComponentSimState in interface SimulationConfig
        Parameters:
        name - The name of the Component
        state - The new state of the Component
      • setProxyALName

        public void setProxyALName​(java.lang.String name)
        Description copied from interface: SimulationConfig
        Sets the name of the AL to use as proxy.
        Specified by:
        setProxyALName in interface SimulationConfig
        Parameters:
        name - The name of the AL
      • getProxyALServer

        public java.lang.String getProxyALServer()
        Description copied from interface: SimulationConfig
        Returns the name of the remote server.
        Specified by:
        getProxyALServer in interface SimulationConfig
        Returns:
        The name of the server
      • setProxyALConfigInstance

        public void setProxyALConfigInstance​(java.lang.String config)
        Description copied from interface: SimulationConfig
        Sets the ID of the configInstance to use
        Specified by:
        setProxyALConfigInstance in interface SimulationConfig
        Parameters:
        config - The ID of the ConfigInstance
      • setProxyALServer

        public void setProxyALServer​(java.lang.String server)
        Description copied from interface: SimulationConfig
        Sets the remote server host name.
        Specified by:
        setProxyALServer in interface SimulationConfig
        Parameters:
        server - The name of the server
      • getProxyALMode

        public int getProxyALMode()
        Description copied from interface: SimulationConfig
        Gets the mode the proxy AL will run in
        • 0 - Run and wait for result
        • 1 - Run in background
        • 2 - Run in Manual mode
        Specified by:
        getProxyALMode in interface SimulationConfig
        Returns:
        The mode the AL will run in
      • setProxyALMode

        public void setProxyALMode​(int mode)
        Description copied from interface: SimulationConfig
        Sets the mode the proxy AL will run in
        • 0 - Run and wait for result
        • 1 - Run in background
        • 2 - Run in Manual mode
        Specified by:
        setProxyALMode in interface SimulationConfig
        Parameters:
        mode - The mode the AL will run in
      • getProxyALDebug

        public boolean getProxyALDebug()
        Description copied from interface: SimulationConfig
        Gets the debug flag state
        Specified by:
        getProxyALDebug in interface SimulationConfig
        Returns:
        The value of the proxy AL debug flag
      • setProxyALDebug

        public void setProxyALDebug​(boolean debug)
        Description copied from interface: SimulationConfig
        Sets proxy AL debug flag on/off
        Specified by:
        setProxyALDebug in interface SimulationConfig
        Parameters:
        debug - The new value of the debug flag
      • createOrUpdateProxyAL

        public AssemblyLineConfig createOrUpdateProxyAL()
                                                 throws java.lang.Exception
        Description copied from interface: SimulationConfig
        This method checks the current simulation config settings and uses the ProxyAL setting to lookup the ProxyAL's AssibmlyLineConfig object. If that object is found it is updated with the missing BranchingConfig components. Any of the existing component in the AssemblyLineConfig that are user defined are not changed. If that object could not be found during the lookup process it is created.
        Specified by:
        createOrUpdateProxyAL in interface SimulationConfig
        Returns:
        the object that was updated with the necessary branching components
        Throws:
        java.lang.Exception