-
Notifications
You must be signed in to change notification settings - Fork 180
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Cleanup] Merging PMachine with StateMachine #770
[Cleanup] Merging PMachine with StateMachine #770
Conversation
ChristineZh0u
commented
Sep 5, 2024
- Removed InitializeParametersFunction(), class InitializeParameters, and class InitializeParametersEvent
- Removed most Try..() functions
- Made sure all unit test passes and generated logs are correct
id = new StateMachineId(type, name, this); | ||
if (name != null) | ||
{ | ||
id = new StateMachineId(type, name.Substring(2), this); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is because the new state machine's InterfaceName
couldn't be passed in through InitializeParametersEvent
anymore. I decided to pass it in is through the name
parameters in CreateStateMachine() since it's not used for anything else. This function is originally getting called like this:
var machineId = CreateStateMachine(createMachine, createdInterface.Substring(2), new InitializeParametersEvent(new InitializeParameters(createdInterface, payload)));
Now it gets called like this:
var machineId = CreateStateMachine(createMachine, createdInterface, GetConstructorEvent(payload));
2cab15f
to
3fc6eec
Compare
3fc6eec
to
00f65cb
Compare
* Doing a major clean up to simplify the code * Removed the unwanted changes in Actors * Removed push transitions and cleaned up the state machine code. * Fixed a minor bug in previous commit * Merging Actor.cs with StateMachine.cs (#757) fixing actor comment fixing Co-authored-by: Christine Zhou <[email protected]> Co-authored-by: Ankush Desai <[email protected]> * [Cleanup] Moving ActorRuntime into ControlledRuntime (#760) * [Cleanup] Moving ActorRuntime into ControlledRuntime * Changing all references of actor to state machine --------- Co-authored-by: Christine Zhou <[email protected]> * [Cleanup] Moving PJsonFormatter to PCheckerLogJsonFormatter and moving PLogFormatter to PCheckerLogTextFormatter (#763) Co-authored-by: Christine Zhou <[email protected]> * [Cleanup] Merging PEvent with Event (#764) Co-authored-by: Christine Zhou <[email protected]> * [Cleanup] Merging PMonitor with Monitor (#766) Co-authored-by: Christine Zhou <[email protected]> * Fixed the code for RaiseStmt * Adding test cases for 'raise' and 'goto' with payload (#767) Co-authored-by: Christine Zhou <[email protected]> * [Cleanup] Merging PMachine with StateMachine (#770) Co-authored-by: Christine Zhou <[email protected]> * Remove GodMachine, CoyoteRuntime; Fix Raise statement in Monitor (#772) * [Cleanup] Remove GodMachine, reformat PChecker folder, add assert false after raise test case * [Cleanup] Remove IStateMachineRuntime, ICyoteRuntime, CyoteRuntime * [Cleanup] Fixing monitor Raise statement + unit tests --------- Co-authored-by: Christine Zhou <[email protected]> * [Cleanup] Minor cleanups (#773) Organized exceptions files; removed dgml file generation; remove Guid; changed Prt naming files and values to P; Remove Coyote references from comments Co-authored-by: Christine Zhou <[email protected]> * [Cleanup] Remove statemachine factory, runtime factory, and name resolver (#774) Co-authored-by: Christine Zhou <[email protected]> * merging cleanup branch to master branch * Added a type checking rule for the Main Machine * Did some more cleanup; the test cases are failing right now. * Fixing warnings and errors --------- Co-authored-by: Ankush Desai <[email protected]> Co-authored-by: Christine Zhou <[email protected]> Co-authored-by: Ankush Desai <[email protected]>