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
F489
F489
Figure 489: create a package named 'com.example.pmsquare' for the plugin classes

 

 

Anchor
F490
F490
Figure 490: Write com.example.pmsquare in the dialog that appears

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

Anchor
F492
F492
Figure 492: On the PMSsquare folder now right click again to create a java class called PMSquare

 

Anchor
F493
F493
Figure 493: create a java class called PMSquare

 

Anchor
F494
F494
Figure 494: Make PMSquare class implement PropagationModelPlugin
(and auto implement the needed methods

Anchor
F495
F495
Figure 495: Press ALT + enter (on PC)

 

Anchor
F496
F496
Figure 496: Select “implement methods” to auto implement the interface

Anchor
F497
F497
Figure 497: Results of the auto implementation

...