Class ActorSuggestion


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

      • m_Properties

        protected Properties m_Properties
        the properties with the rules.
      • m_Defaults

        protected Actor[] m_Defaults
        the default actor(s).
      • m_Rules

        protected String[] m_Rules
        the valid rules.
    • Method Detail

      • initialize

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

        public Actor[] getDefaults()
        Returns the available default actors.
        Returns:
        the default actors
      • suggest

        public Actor[] suggest​(ActorSuggestion.SuggestionData context)
        Returns the suggested actors.
        Parameters:
        context - the suggestion context
        Returns:
        the suggested actors
      • getSingleton

        public static ActorSuggestion getSingleton()
        Returns the singleton instance for suggesting actors.
        Returns:
        the singleton