Class ActorTemplateSuggestion


  • public class ActorTemplateSuggestion
    extends Object
    Class for suggesting actor templates when editing a flow, depending on the context.
    Author:
    fracpete (fracpete at waikato dot ac dot nz)
    • Method Detail

      • initialize

        protected void initialize()
        Initializes the rules engine for proposing actor templates.
      • getDefaults

        public AbstractActorTemplate[] getDefaults()
        Returns the available default actor templates.
        Returns:
        the default actor templates
      • suggest

        public AbstractActorTemplate[] suggest​(Actor parent,
                                               int position,
                                               Actor[] actors)
        Returns the suggested actor templates.
        Parameters:
        parent - the parent of the actor to suggest
        position - the position of the actor template to insert in the actors
        actors - the actors to insert the suggested actor template in
        Returns:
        the suggested actor templates
      • getSingleton

        public static ActorTemplateSuggestion getSingleton()
        Returns the singleton instance for suggesting actor templates.
        Returns:
        the singleton