Manual - BIVAS Console
Manual - BIVAS Console
Introduction
The application makes it possible to execute the following commands via the console:
- Starting a BIVAS scenario calculation.
- Starting a BIVAS ship costs calculation.
- Starting a BIVAS fleet mutation calculation.
Configuration
The console makes use of two different configuration files.
-
Bivas.Console.configuration: a required configuration file, preferably in the same folder as theBivas.Console.exefile.Bivas.Console.sample.configurationcan be used as an example. -
Bivas: a folder that containsSettings.json,Modules.json,Files.jsonand all files that are defined inFiles.json. TheSettings.jsonfile contains all settings of a scenario and fleet mutation calculation. TheModules.jsonfile is a required file, but currently only contains an empty list ([]). TheFiles.jsonfile documents the content of each file. The folder structure can be adjusted as desired via theFoldervariable of the table in theFiles.jsonfile. TheBivasfolder is required for the scenario and fleet mutation calculation. The nameBivasis just an example and can be freely adjusted.
Database
BIVAS Console currently uses two ways to retrieve input and store output during calculations.
When an input table is defined in Files.json, the input is read from the Bivas folder.
In the same way, output is stored in the Bivas folder when the relevant output table is included in Files.json.
If input or output tables are not defined in Files.json, the input is retrieved directly from the database and the output is written back to the database.
The settings from Settings.json are used in the scenario and fleet mutation calculation.
Application
Configuring parameters and metrics
Currently, the parameters for a scenario and fleet mutation calculation are configured via Settings.json.
Parameters for a ship costs calculation are configured via the standard BIVAS application.
The metrics for the scenario calculation can be set in BIVAS Console. If no metrics are specified, all metrics are calculated. If metrics are specified, only these are calculated.
BIVAS Console can be invoked in the console as follows:
1
Bivas.Console.Exe [Options] [Input …]
The following table gives an overview of the different options with a brief description.
| Option | Description |
|---|---|
--Configuration=<Path>
|
Path to the configuration file. If no value is given, the file in the folder of the application (.exe file) is used.
|
--Scenario=<Integer>
| The scenario for which the calculation is started. |
--Metrics=<Metric1,Metric2,...>
|
The metrics that are calculated for the scenario.
The possible metrics are: OverallStatistics, Trips, Routes, RouteStatistics,
RouteStatisticsPerCountry, InfeasibleTrips, ArcStatistics, ArcUsage, ArcUsageGrouped,
ArcUsageDetails, ArcUsageDetailsGrouped, OriginTripEndPoint, DestinationTripEndPoint,
CountingPoint, WaitingTime, Emission, ReferenceComparison, Segments and SegmentsGrouped.
|
--ShipCosts=<Integer>
| The scenario for which the ship costs calculation is started. |
--FleetMutation
| The fleet mutation calculation is started. |
Additional notes on the different options:
- The reference to the BIVAS database is set within the configuration of the application.
Examples
With the following command the calculation is started for scenario with ID 10.
Bivas.Console.configuration is retrieved from the same folder as Bivas.Console.Exe.
1
Bivas.Console.Exe --Scenario=10 Path\Bivas
With the following command the calculation is started for scenario with ID 10.
Bivas.Console.configuration is retrieved from the specified location.
1
Bivas.Console.Exe --Configuration=Path\Bivas.Console.configuration --Scenario=10 Path\Bivas
With the following command the ship costs calculation is started for scenario with ID 10.
Bivas.Console.configuration is retrieved from the same folder as Bivas.Console.Exe.
1
Bivas.Console.Exe --ShipCosts=10
With the following command the calculation is started for the fleet mutation.
Bivas.Console.configuration and Bivas are retrieved from the specified location.
1
Bivas.Console.Exe --Configuration=Path\Bivas.Console.configuration --FleetMutation Path\Bivas