Package nl.rrd.wool.model
Class WoolDialogue
- java.lang.Object
-
- nl.rrd.wool.model.WoolDialogue
-
-
Constructor Summary
Constructors Constructor Description WoolDialogue()Creates an empty instance of aWoolDialogue.WoolDialogue(String dialogueName)Creates an instance of aWoolDialoguewith a givendialogueName.
-
Method Summary
Modifier and Type Method Description voidaddNode(WoolNode node)StringgetDialogueName()Returns the name of thisWoolDialogue.Set<String>getDialoguesReferenced()intgetDialoguesReferencedCount()Returns the total number of different dialogues referenced from thisWoolDialogue.WoolNodegetNodeById(String nodeId)intgetNodeCount()Returns the total number of nodes in thisWoolDialogue.List<WoolNode>getNodes()Returns the nodes as an unmodifiable list.intgetSpeakerCount()Returns the total number of speakers present in thisWoolDialogue.Set<String>getSpeakers()List<String>getSpeakersList()WoolNodegetStartNode()Returns the startingWoolNodefor thisWoolDialogue.Set<String>getVariablesNeeded()intgetVariablesNeededCount()Returns the total number of different variables needed in executing thisWoolDialogue.Set<String>getVariablesWritten()intgetVariablesWrittenCount()Returns the total number of different variables written in executing thisWoolDialogue.booleannodeExists(String nodeId)voidsetDialogueName(String dialogueName)Sets the name of thisWoolDialogue.StringtoString()Returns a human readable multi-line summary string, representing the contents of thisWoolDialogue.
-
-
-
Constructor Detail
-
WoolDialogue
public WoolDialogue()
Creates an empty instance of aWoolDialogue.
-
WoolDialogue
public WoolDialogue(String dialogueName)
Creates an instance of aWoolDialoguewith a givendialogueName.- Parameters:
dialogueName- the name of thisWoolDialogue.
-
-
Method Detail
-
getDialogueName
public String getDialogueName()
Returns the name of thisWoolDialogue.- Returns:
- the name of this
WoolDialogue.
-
getStartNode
public WoolNode getStartNode()
Returns the startingWoolNodefor thisWoolDialogue.- Returns:
- the starting
WoolNodefor thisWoolDialogue.
-
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)
-
setDialogueName
public void setDialogueName(String dialogueName)
Sets the name of thisWoolDialogue.- Parameters:
dialogueName- the name of thisWoolDialogue.
-
nodeExists
public boolean nodeExists(String nodeId)
-
getNodeCount
public int getNodeCount()
Returns the total number of nodes in thisWoolDialogue.- Returns:
- the total number of nodes in this
WoolDialogue.
-
getSpeakerCount
public int getSpeakerCount()
Returns the total number of speakers present in thisWoolDialogue.- Returns:
- the total number of speakers present in this
WoolDialogue.
-
getDialoguesReferencedCount
public int getDialoguesReferencedCount()
Returns the total number of different dialogues referenced from thisWoolDialogue.- 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 thisWoolDialogue.- 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 thisWoolDialogue.- 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 thisWoolDialogue.
-
-