public ScenarioPortrayal createScenarioPortrayal() throws ShanksException {
        logger.fine("Creating Scenario Portrayal...");
        String dimensions = (String) this.getProperty(Scenario.SIMULATION_GUI);
        if (dimensions.equals(Scenario.SIMULATION_2D)) {
            logger.fine("Creating Scenario2DPortrayal");
            return this.createScenario2DPortrayal();
        } else if (dimensions.equals(Scenario.SIMULATION_3D)) {
            logger.fine("Creating Scenario3DPortrayal");
            return this.createScenario3DPortrayal();
        } else if (dimensions.equals(Scenario.NO_GUI)) {
            return null;
        }
        return null;

    }
public ScenarioPortrayal createScenarioPortrayal ( ) throws ShanksException { logger . fine ( "Creating Scenario Portrayal..." ) ; String dimensions = ( String ) this . getProperty ( Scenario . SIMULATION_GUI ) ; if ( dimensions . equals ( Scenario . SIMULATION_2D ) ) { logger . fine ( "Creating Scenario2DPortrayal" ) ; return this . createScenario2DPortrayal ( ) ; } else if ( dimensions . equals ( Scenario . SIMULATION_3D ) ) { logger . fine ( "Creating Scenario3DPortrayal" ) ; return this . createScenario3DPortrayal ( ) ; } else if ( dimensions . equals ( Scenario . NO_GUI ) ) { return null ; } return null ; }
Create the scenario portrayal (2D o 3D).

@return Scenario2DPortrayal or Scenario3DPortrayal object
@throws DuplicatedPortrayalIDException
@throws ScenarioNotFoundException