Skip to content
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

Merged

Conversation

ChristineZh0u
Copy link
Contributor

  • 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);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is this?

Copy link
Contributor Author

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));

@ChristineZh0u ChristineZh0u force-pushed the cleanup/Simplify_PChecker_Christine branch from 2cab15f to 3fc6eec Compare September 5, 2024 18:38
@ChristineZh0u ChristineZh0u force-pushed the cleanup/Simplify_PChecker_Christine branch from 3fc6eec to 00f65cb Compare September 5, 2024 23:44
@ankushdesai ankushdesai merged commit d809879 into cleanup/Simplify_PChecker Sep 5, 2024
14 checks passed
@ankushdesai ankushdesai deleted the cleanup/Simplify_PChecker_Christine branch September 5, 2024 23:52
ankushdesai added a commit that referenced this pull request Oct 10, 2024
* 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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants