Dear All,
on my model I apply the sequential composition operator (;).
Only to accepting states sequences can be added, so I simply start with all model states accepting:
public static bool Switch = true;
[AcceptingStateCondition]
public static bool Accept
{
get
{
return (Switch == true);
}
}
But I also need accepting states for having the test always end in a save state.
So my idea was to finally switch off the unwanted accepting states (except the save states - not shown here) with a parameterization:
machine AccumulatorModelProgram() : Main
{
{. Switch = false; .} :
(construct model program from ParameterCombination)
}
This nearly works: Only the initial state is now accepting.
The problem is that an action with no state change at all (state checker) paradoxically causes a state change: it will "make" the initial state non-accepting.
This creates unwanted states.
Is this correct, or shouldn't also the initial state be non-accepting now?
Is it possible to make all states non-accepting with parameterization?
Thank you for any help