Porovnávané verzie

Kľúč

  • Tento riadok sa pridal
  • Riadok je odstránený.
  • Formátovanie sa zmenilo.

Značky WikiVstupný bod programu _public static void The program entry point public static void main(String\[\]) _ sa nachádza v rozhraní _is located in the sk.ipesoft.sgcom.Main{_}, ktorý je implementovaný triedou _MainImpl{_}. Vstupný bod programu zabezpečí spracovanie parametrov z príkazového riadku a použitie správneho modulu pre _Guice_ a {_}MainImpl_ zase obsahuje aplikačný „mainloop" - hlavnú programovú slučku, ktorá kontroluje a riadi spojenie _SGCom{_}-u s centrálou. Toto rozdelenie sa používa pri testovaní (predovšetkým _OperationTest{_}), v ktorom sa _mainloop_ spustí s podstrčenými testovacími parametrami potom, čo inicializácia testu pripraví testovacie prostredie interface, which is implemented by the MainImpl class. The entry point of the program will ensure the processing of parameters from the command line and the use of the correct module for Guice and MainImpl, in turn, contains the application "mainloop" - the main program loop that controls and controls the connection of SGCom with the metering central.
This split is used in testing (mainly OperationTest) where the mainloop is run with test parameters pushed in after test initialization prepares the test environment.