Class Scenario
java.lang.Object
pl.put.poznan.qualitychecker.logic.Scenario
Representation of a single scenario.
-
Constructor Details
-
Scenario
Creates a new instance of class Scenario.- Parameters:
scenario
- Textual representation of a scenario.
-
-
Method Details
-
toJSON
Transforms the scenario into its JSON representation.- Returns:
- JSON string representing the scenario.
-
getTitle
- Returns:
- Title of the scenario.
-
getActors
- Returns:
- List of names of all the actors.
-
getSystemActor
- Returns:
- Name of the system actor.
-
getSteps
- Returns:
- List of steps within a scenario.
-
accept
Accepts aVisitor
.- Parameters:
visitor
- Visitor to be accepted.- Returns:
- Object returned by the visitor.
-
getAllActors
- Returns:
- List of all actors for a scenario - including the system actor.
-
addStep
Adds a step to the scenario.- Parameters:
step
- Step to be added.
-