Claims
- 1. A method for providing a software state machine, comprising:
providing a first state machine object, wherein the first state machine object is configured to use a first initializer object to execute a first software state machine; and providing a second state machine object, wherein the second state machine object is configured to use a second initializer object to execute a second software state machine, wherein the second state machine object is configured to interact with the first state machine object based on the second initializer object.
- 2. The method of claim 1, wherein the second state machine object is configured to embed the first state machine object.
- 3. The method of claim 1, wherein the second state machine object is a subclass of the first state machine object.
- 4. The method of claim 1, wherein the second state machine object shares a common input with the first state machine object.
- 5. The method of claim 1, wherein the second software state machine shares a common trigger with the first software state machine.
- 6. The method of claim 1, wherein the first software state machine generates at least a first event and outputs a state value.
- 7. The method of claim 6, wherein the second software state machine receives the first event as a trigger.
- 8. The method of claim 6, wherein the second software state machine receives the state value as an input.
- 9. The method of claim 6, wherein the state value is accessible to a software object outside of the second state machine object.
- 10. The method of claim 1, further comprising:
providing a third state machine object, wherein the third state machine object is configured to use a third initializer object to execute a third software state machine, wherein the third state machine object is configured to interact with the second state machine object based on the third initializer object.
- 11. The method of claim 10, wherein the third state machine object is a subclass of the second state machine object.
- 12. The method of claim 11, wherein the second state machine object is configured to embed the first state machine object.
- 13. An apparatus for providing a software state machine, comprising:
a processor; and a memory having stored therein a first state machine object, a first initializer object, a second state machine object, and a second initializer object, wherein the first state machine object is configured to use the first initializer object to execute a first software state machine; wherein the second state machine object is configured to use the second initializer object to execute a second software state machine; and wherein the second state machine object is configured to interact with the first state machine object based on the second initializer object.
- 14. The apparatus of claim 13, wherein the second state machine object is configured to embed the first state machine object.
- 15. The apparatus of claim 13, wherein the second state machine object is a subclass of the first state machine object.
- 16. The apparatus of claim 13, wherein the second state machine object shares a common input with the first state machine object.
- 17. The apparatus of claim 13, wherein the second software state machine shares a common trigger with the first software state machine.
- 18. The apparatus of claim 13, wherein the first software state machine generates at least a first event and outputs a state value.
- 19. The apparatus of claim 18, wherein the second software state machine receives the first event as a trigger.
- 20. The apparatus of claim 18, wherein the second software state machine receives the state value as an input.
- 21. The apparatus of claim 18, wherein the state value is accessible to a software object outside of the second state machine object.
- 22. A computer program product, in a computer readable medium, for providing a software state machine, comprising:
instructions for providing a first state machine object, wherein the first state machine object is configured to use a first initializer object to execute a first software state machine; and instructions for providing a second state machine object, wherein the second state machine object is configured to use a second initializer object to execute a second software state machine, wherein the second state machine object is configured to interact with the first state machine object based on the second initializer object.
RELATED APPLICATIONS
[0001] The present application is related to commonly assigned and co-pending U.S. patent application Ser. No. 10/047,801 (Attorney Docket No. AUS920010995US1) entitled “METHOD, APPARATUS, AND PROGRAM FOR A STATE MACHINE FRAMEWORK”, filed on Jan. 17, 2002, and hereby incorporated by reference.