Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • Python

    Code Block
    languagepy
    linenumberstrue
    collapsetrue
    class <name>(...):
        ...
        def initialize():
            #Assign variable values
            #Initialize data
            ...
        def execute():
            #Retrieve components
            #Consider ready to receive calls (Change states if appropriate)
            ...
        def cleanUp():
            #Release components
            #Release resources
            ...
        def aboutToAbort():
            #Do any critical clean up
            #Continue with less critical stuff such as releasing components and other activities similar to cleanUp
            ...
        ...


  • Java

    Code Block
    languagejava
    linenumberstrue
    collapsetrue
    import alma.acs.container.ContainerServices;
    import alma.acs.component.ComponentLifecycleException;
    
    public class <name> ... {
        ...
        public void initialize(ContainerServices containerServices) throws ComponentLifecycleException {
            super.initialize(containerServices);
            //Assign variable values
            //Initialize data 
            ...
        }
    
        public void execute() {
            //Retrieve components
            //Consider ready to receive calls (Change states if appropriate)
            ...
        }
        public void cleanUp() {
            //Release components
            //Release resources
            ...
        }
        public void aboutToAbort() {
            //Do any critical clean up
            //Continue with less critical stuff such as releasing components and other activities similar to cleanUp
            ...
        }
        ...
    }


  • C++

    Code Block
    languagecpp
    linenumberstrue
    collapsetrue
    class <name> : ... {
        ...
        void initialize();
        void execute();
        void cleanUp();
        void aboutToAbort();
        ...
    };


    Code Block
    languagecpp
    linenumberstrue
    collapsetrue
    void <name>::initialize() {
        //Assign variable values
        //Initialize data
        ...
    }
    
    void <name>::execute() {
        //Retrieve components
        //Consider ready to receive calls (Change states if appropriate)
        ...
    }
    
    void <name>::cleanUp() {
        //Release components
        //Release resources
        ...
    }
    
    void <name>::aboutToAbort() {
        //Do any critical clean up
        //Continue with less critical stuff such as releasing components and other activities similar to cleanUp
        ...
    }


...

The errors defined in the XML files need to be declared in the IDLs to be used in component comunicationscommunications:

Code Block
languagecpp
linenumberstrue
collapsetrue
...
    void setMode(in boolean mode) raises(SYSTEMErr::AlreadyInAutomaticEx);
...

...