Class ScenarioWrapper

java.lang.Object
org.opentrafficsim.editor.ScenarioWrapper

public class ScenarioWrapper extends Object
Wraps a scenario node as an item in the dropdown menu.

Copyright (c) 2023-2024 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.

Author:
Wouter Schakel
  • Constructor Details

    • ScenarioWrapper

      public ScenarioWrapper(XsdTreeNode scenarioNode)
      Constructor.
      Parameters:
      scenarioNode - XsdTreeNode; node of the scenario.
  • Method Details

    • isScenario

      public boolean isScenario(XsdTreeNode node)
      Returns whether this wraps the given node.
      Parameters:
      node - XsdTreeNode; node.
      Returns:
      boolean; whether this wraps the given node.
    • getScenarioNode

      public XsdTreeNode getScenarioNode()
      Returns the scenario node.
      Returns:
      XsdTreeNode; scenario node.
    • toString

      public String toString()
      Overrides:
      toString in class Object