BIVAS
Search

Manual - BIVAS Console

Manual - BIVAS Console

Introduction

The application makes it possible to execute the following commands via the console:

  1. Starting a BIVAS scenario calculation.
  2. Starting a BIVAS ship costs calculation.
  3. Starting a BIVAS fleet mutation calculation.

Configuration

The console makes use of two different configuration files.

  1. Bivas.Console.configuration: a required configuration file, preferably in the same folder as the Bivas.Console.exe file. Bivas.Console.sample.configuration can be used as an example.
  2. Bivas: a folder that contains Settings.json, Modules.json, Files.json and all files that are defined in Files.json. The Settings.json file contains all settings of a scenario and fleet mutation calculation. The Modules.json file is a required file, but currently only contains an empty list ([]). The Files.json file documents the content of each file. The folder structure can be adjusted as desired via the Folder variable of the table in the Files.json file. The Bivas folder is required for the scenario and fleet mutation calculation. The name Bivas is 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
    Are you sure you want to delete this entry? Any local changes will be lost.YesNoRetryWaiting to synchronizeSynchronization conflictSynchronization failed
    Some uploads have failed. Are you sure you want to close all?ConflictDayDniEditedErrorFailedFailed to load pageHourHoursJust nowYour latest changes have not been sent yet.MinuteMinutesMonthMonthsNoPendingReload to view the latest versionSecondSecondsSuccessfulSynchronized {Time}{Count} {Unit} agoA new version is available. Reloading...UploadsWeekWeeksYearYearsYes