Package oms3

Class Compound

  • Direct Known Subclasses:
    Conditional

    public class Compound
    extends Object
    Abstract Compound Command.
    Version:
    $Id$
    Author:
    od
    • Constructor Detail

      • Compound

        public Compound()
    • Method Detail

      • initializeComponents

        public void initializeComponents()
      • finalizeComponents

        public void finalizeComponents()
      • shutdown

        public static void shutdown()
        Shutting down the execution service
      • reload

        public static void reload()
      • out2infb

        public void out2infb​(Object from,
                             String from_out,
                             Object to,
                             String to_in)
        Connects two internal components with respect to their fields. from/@Out -> to/@In
        Parameters:
        from - command object 1
        from_out - output field of cmd1
        to - command object 2
        to_in - input field of cmd2
      • out2in

        public void out2in​(Object from,
                           String from_out,
                           Object to,
                           String to_in)
        Connects two internal components with respect to their fields. from/@Out -> to/@In
        Parameters:
        from - command object 1
        from_out - output field of cmd1
        to - command opbject 2
        to_in - input field of cmd2
      • out2in

        public void out2in​(Object from,
                           String from_out,
                           Object... tos)
        Connects field1 of cmd1 with the same named fields in cmds
        Parameters:
        from - component1
        from_out - field
        tos - other components
      • feedback

        public void feedback​(Object from,
                             String from_out,
                             Object to,
                             String to_in)
        Feedback connection between two components.
        Parameters:
        from - the src component
        from_out - output field
        to - dest component
        to_in - in field
      • feedback

        public void feedback​(Object from,
                             String from_out,
                             Object... tos)
        Feedback connection between two components.
        Parameters:
        from -
        from_out -
        tos -
      • in2in

        public void in2in​(String in,
                          Object to,
                          String to_in)
        Maps a Compound Input field to a internal simple input field.
        Parameters:
        in - Compound input field.
        to - internal Component
        to_in - Input field of the internal component
      • in2in

        public void in2in​(String in,
                          Object... to)
        Maps a compound input to an internal simple input field. Both fields have the same name.
        Parameters:
        in - the name of the field
        to - the commands to map to
      • field2inout

        public void field2inout​(Object o,
                                String field,
                                Object comp,
                                String inout)
        Maps a field to an In and Out field
        Parameters:
        o - the object
        field - the field name
        comp - the component
        inout - the field tagged with In and Out
      • field2inout

        public void field2inout​(Object o,
                                String field,
                                Object comp)
        Maps a field to an In and Out field
        Parameters:
        o - the object
        field - the field name
        comp - the component
      • field2in

        public void field2in​(Object o,
                             String field,
                             Object to,
                             String to_in)
        Maps a object's field to an In field
        Parameters:
        o - the object
        field - the field name
        to - the component
        to_in - the In field.
      • field2in

        public void field2in​(Object o,
                             String field,
                             Object to)
        Maps an object's field to a component's In field with the same name
        Parameters:
        o - the object
        field - the field name
        to - the component.
      • out2field

        public void out2field​(Object from,
                              String from_out,
                              Object o,
                              String field)
        Maps a component's Out field to an object field.
        Parameters:
        from - the component
        from_out - the component's out field
        o - the object
        field - the object's field
      • out2field

        public void out2field​(Object from,
                              String from_out,
                              Object o)
        Maps a component Out field to an object's field. Both field have the same name.
        Parameters:
        from - the component
        from_out - the component's Out field.
        o - the object
      • out2out

        public void out2out​(String out,
                            Object to,
                            String to_out)
        Maps a Compound Output field to a internal simple output field.
        Parameters:
        out - Compount output field.
        to - internal Component
        to_out - output field of the internal component
      • out2out

        public void out2out​(String out,
                            Object to)
        Map output maps a compound output to an internal simple output field. Both fields have the same name.
        Parameters:
        out - tha name of the field
        to - the component source.
      • val2in

        public void val2in​(boolean val,
                           Object to,
                           String field)
      • val2in

        public void val2in​(char val,
                           Object to,
                           String field)
      • val2in

        public void val2in​(byte val,
                           Object to,
                           String field)
      • val2in

        public void val2in​(short val,
                           Object to,
                           String field)
      • val2in

        public void val2in​(int val,
                           Object to,
                           String field)
      • val2in

        public void val2in​(long val,
                           Object to,
                           String field)
      • val2in

        public void val2in​(float val,
                           Object to,
                           String field)
      • val2in

        public void val2in​(double val,
                           Object to,
                           String field)
      • check

        protected void check()
        Check for valid internals within the compound
      • addListener

        public void addListener​(Notification.Listener l)
        Add a ExecutionListener that tracks execution
        Parameters:
        l - the Listener to add
      • removeListerer

        public void removeListerer​(Notification.Listener l)
        Remove a ExecutionListener that tracks execution
        Parameters:
        l - the Listener to remove