Beispiel #1
0
 /** Removes this {@link Transition} completely. */
 public final void delete() {
   from.removeOut(this);
   from = null;
   if (to != null) {
     to.removeIn(this);
     to = null;
   }
 }
Beispiel #2
0
 /**
  * Changes the State where this Transition originally ended in.
  *
  * @param to The now {@link State} where this Transition should ended in.
  */
 public final void changeTo(final State to) {
   State oldTo = this.to;
   this.to = to;
   if (this.to != null) {
     to.addIn(this);
   }
   if (oldTo != null) {
     oldTo.removeIn(this);
   }
 }