Class Scenario

java.lang.Object
pl.put.poznan.qualitychecker.logic.Scenario

public class Scenario extends Object
Representation of a single scenario.
  • Constructor Details

    • Scenario

      public Scenario(String scenario)
      Creates a new instance of class Scenario.
      Parameters:
      scenario - Textual representation of a scenario.
  • Method Details

    • toJSON

      public String toJSON()
      Transforms the scenario into its JSON representation.
      Returns:
      JSON string representing the scenario.
    • getTitle

      public String getTitle()
      Returns:
      Title of the scenario.
    • getActors

      public List<String> getActors()
      Returns:
      List of names of all the actors.
    • getSystemActor

      public String getSystemActor()
      Returns:
      Name of the system actor.
    • getSteps

      public List<ScenarioStepComponent> getSteps()
      Returns:
      List of steps within a scenario.
    • accept

      public Object accept(Visitor visitor)
      Accepts a Visitor.
      Parameters:
      visitor - Visitor to be accepted.
      Returns:
      Object returned by the visitor.
    • getAllActors

      public List<String> getAllActors()
      Returns:
      List of all actors for a scenario - including the system actor.
    • addStep

      public void addStep(ScenarioStepComponent step)
      Adds a step to the scenario.
      Parameters:
      step - Step to be added.