Class WoolDialogue


  • public class WoolDialogue
    extends Object
    Object representation of a Wool Dialogue definition. A Wool Dialogue has a name, an (unordered) list of WoolNodes and a specific start node.
    • Constructor Detail

      • WoolDialogue

        public WoolDialogue()
        Creates an empty instance of a WoolDialogue.
      • WoolDialogue

        public WoolDialogue​(String dialogueName)
        Creates an instance of a WoolDialogue with a given dialogueName.
        Parameters:
        dialogueName - the name of this WoolDialogue.
    • Method Detail

      • getNodes

        public List<WoolNode> getNodes()
        Returns the nodes as an unmodifiable list.
        Returns:
        the nodes as an unmodifiable list
      • addNode

        public void addNode​(WoolNode node)
      • getSpeakers

        public Set<String> getSpeakers()
      • getSpeakersList

        public List<String> getSpeakersList()
      • getVariablesNeeded

        public Set<String> getVariablesNeeded()
      • getVariablesWritten

        public Set<String> getVariablesWritten()
      • getDialoguesReferenced

        public Set<String> getDialoguesReferenced()
      • setDialogueName

        public void setDialogueName​(String dialogueName)
        Sets the name of this WoolDialogue.
        Parameters:
        dialogueName - the name of this WoolDialogue.
      • nodeExists

        public boolean nodeExists​(String nodeId)
      • getNodeCount

        public int getNodeCount()
        Returns the total number of nodes in this WoolDialogue.
        Returns:
        the total number of nodes in this WoolDialogue.
      • getSpeakerCount

        public int getSpeakerCount()
        Returns the total number of speakers present in this WoolDialogue.
        Returns:
        the total number of speakers present in this WoolDialogue.
      • getDialoguesReferencedCount

        public int getDialoguesReferencedCount()
        Returns the total number of different dialogues referenced from this WoolDialogue.
        Returns:
        the total number of different dialogues referenced from this WoolDialogue.
      • getVariablesNeededCount

        public int getVariablesNeededCount()
        Returns the total number of different variables needed in executing this WoolDialogue.
        Returns:
        the total number of different variables needed in executing this WoolDialogue.
      • getVariablesWrittenCount

        public int getVariablesWrittenCount()
        Returns the total number of different variables written in executing this WoolDialogue.
        Returns:
        the total number of different variables written in executing this WoolDialogue.
      • toString

        public String toString()
        Returns a human readable multi-line summary string, representing the contents of this WoolDialogue.
        Overrides:
        toString in class Object