3
import pipe.dataLayer.DataLayer;
4
import pipe.dataLayer.TimedPlaceComponent;
5
import pipe.gui.DrawingSurfaceImpl;
6
import dk.aau.cs.model.tapn.TimedArcPetriNet;
8
public class AddTimedPlaceCommand extends TAPNElementCommand {
9
final TimedPlaceComponent timedPlace;
11
public AddTimedPlaceCommand(TimedPlaceComponent timedPlace,
12
TimedArcPetriNet tapn, DataLayer guiModel, DrawingSurfaceImpl view) {
13
super(tapn, guiModel, view);
14
this.timedPlace = timedPlace;
19
tapn.remove(timedPlace.underlyingPlace());
26
timedPlace.undelete(view);
27
tapn.add(timedPlace.underlyingPlace());