changeStateProperty

fun changeStateProperty(state: State, name: Int? = null, isStart: Boolean? = null, isAcceptingState: Boolean? = null): Boolean

Safely change a property of a state contained in this FSM. Before changing the property, this method makes sure that e.g., no other start state exists or that no other state already has the suggested name.

State properties should only be changed through this method as soon as they part of a FSM.

Return

true if the property was changed, false otherwise.