I try to copy a Petri Net into another object before I manipulate the copy. However, since a normal assertion in Java obj1 = obj2 is not a real copy but just a copy of the reference, both objects point to the same petri net.
I tried using deepCopying, but it didn't work since the Petrinet object does not implement Serializable.
I also tried clone, but a clone mehtod shouldn't be used and is not visible.
Do you have any idea what else to try? Otherwise I will try to copy it variable after variable by calling the constructor and filling the new object with the values of the old one.