Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Anchor
A18.3.2
A18.3.2
We first create a package named 'com.example.pmsquare' for the plugin classes. This is done by right clicking the 'src/main/java' folder and selecting new->package

Anchor
F489F496F489
F496
Figure 489496: create a package named 'com.example.pmsquare' for the plugin classes

...

 



Anchor
F490F497F490
F497
Figure 490497: Write com.example.pmsquare in the dialog that appears

Anchor
F491F498F491
F498
Figure 491498: Remember to have the “Compact Empty Middle Packages” unchecked in the view settings  , so that you can see the tree structure

Anchor
F492F499F492
F499
Figure 492499: On the PMSsquare folder now right click again to create a java class called PMSquare 


Anchor
F493F500F493
F500
Figure 493500: create a java class called PMSquare

 


Anchor
F494F501F494
F501
Figure 494501: Make PMSquare class implement PropagationModelPlugin
(and auto implement the needed methods

Anchor
F495F502F495
F502
Figure 495502: Press ALT + enter (on PC)

...


Anchor
F496F503F496
F503
Figure 496503: Select “implement methods” to auto implement the interface

Anchor
F497F504F497
F504
Figure 497504: Results of the auto implementation

 

...