You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Introducing intermediate Drone's states related to unit time of periodic task
Battery capacity is changing on 2% per time unit.
Total for full cycle on 22% (11 time units)
From LOADING to LOADED, LOADED to DELIVERING, DELIVERED to RETURNING required one time unit (time unit is predefined and may be configured)
From DELIVERING to DELIVERED, RETURNING to IDLE - 4 time units
To keep things much simplier there are introduced intermediate states between DELIVERING and DELIVERED, and between RETURNING and IDLE that has allowed considering all moves per one time unit with appropriated logging
Battery is charging in IDLE state with the same principle (2% per time unit)
Running instructions
Download ZIP from GitHub
Unzip
Enter folder with unzipped project
Run command maven wrapper mvnw package. All Unit Tests should be performed and as a result there will be created JAR file drones-medications-0.0.1.jar
Run command java -jar trget/drones-medications-0.0.1.jar. As a result the application will start on the port 8080
By using Postman or any other Restful client there may be performed a sanity integration test according to the API