Java Doc for SCXMLSemantics.java in  » Library » Apache-commons-scxml-0.6-src » org » apache » commons » scxml » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Library » Apache commons scxml 0.6 src » org.apache.commons.scxml 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.apache.commons.scxml.SCXMLSemantics

All known Subclasses:   org.apache.commons.scxml.semantics.SCXMLSemanticsImpl,
SCXMLSemantics
public interface SCXMLSemantics (Code)

The purpose of this interface is to separate the interpretation algorithm from the SCXMLExecutor and therefore make it pluggable.

Semantics agnostic utility functions and common operators as defined in UML can be found in the SCXMLHelper or attached directly to the SCXML model elements. Some of the possible semantic interpretations are, for example:

  • STATEMATE
  • RHAPSODY
  • ROOMCharts
  • UML 1.5
  • UML 2.0

Specific semantics can be created by subclassing org.apache.commons.scxml.semantics.SCXMLSemanticsImpl.





Method Summary
 voiddetermineInitialStates(SCXML input, Set states, List entryList, ErrorReporter errRep, SCInstance scInstance)
     Determining the initial state(s) for this state machine.
 voidenumerateReachableTransitions(SCXML stateMachine, Step step, ErrorReporter errRep)
     Enumerate all the reachable transitions.
 voidexecuteActions(Step step, SCXML stateMachine, EventDispatcher evtDispatcher, ErrorReporter errRep, SCInstance scInstance)
     Executes all OnExit/Transition/OnEntry transitional actions.
 voidfilterTransitionsSet(Step step, EventDispatcher evtDispatcher, ErrorReporter errRep, SCInstance scInstance)
     Filter the transitions set, eliminate those whose guard conditions are not satisfied.
 voidfollowTransitions(Step step, ErrorReporter errorReporter, SCInstance scInstance)
     Follow the candidate transitions for this execution Step, and update the lists of entered and exited states accordingly.
 voidinitiateInvokes(Step step, ErrorReporter errRep, SCInstance scInstance)
     Initiate any new invoked activities.
 SCXMLnormalizeStateMachine(SCXML input, ErrorReporter errRep)
     Optional post processing immediately following Digester.
 voidprocessInvokes(TriggerEvent[] events, ErrorReporter errRep, SCInstance scInstance)
     Forward events to invoked activities, execute finalize handlers.
 voidupdateHistoryStates(Step step, ErrorReporter errRep, SCInstance scInstance)
     Go over the exit list and update history information for relevant states.



Method Detail
determineInitialStates
void determineInitialStates(SCXML input, Set states, List entryList, ErrorReporter errRep, SCInstance scInstance) throws ModelException(Code)
Determining the initial state(s) for this state machine.
Parameters:
  input - SCXML state machine
Parameters:
  states - a set of States to populate
Parameters:
  entryList - a list of States and Parallels to enter
Parameters:
  errRep - ErrorReporter callback
Parameters:
  scInstance - The state chart instance
throws:
  ModelException - in case there is a fatal SCXML object model problem.



enumerateReachableTransitions
void enumerateReachableTransitions(SCXML stateMachine, Step step, ErrorReporter errRep)(Code)
Enumerate all the reachable transitions.
Parameters:
  stateMachine - a state machine to traverse
Parameters:
  step - with current status and list of transitions to populate
Parameters:
  errRep - ErrorReporter callback



executeActions
void executeActions(Step step, SCXML stateMachine, EventDispatcher evtDispatcher, ErrorReporter errRep, SCInstance scInstance) throws ModelException(Code)
Executes all OnExit/Transition/OnEntry transitional actions.
Parameters:
  step - provides EntryList, TransitList, ExitList getsupdated its AfterStatus/Events
Parameters:
  stateMachine - state machine - SCXML instance
Parameters:
  evtDispatcher - the event dispatcher - EventDispatcher instance
Parameters:
  errRep - error reporter
Parameters:
  scInstance - The state chart instance
throws:
  ModelException - in case there is a fatal SCXML object model problem.



filterTransitionsSet
void filterTransitionsSet(Step step, EventDispatcher evtDispatcher, ErrorReporter errRep, SCInstance scInstance) throws ModelException(Code)
Filter the transitions set, eliminate those whose guard conditions are not satisfied.
Parameters:
  step - with current status
Parameters:
  evtDispatcher - the event dispatcher - EventDispatcher instance
Parameters:
  errRep - ErrorReporter callback
Parameters:
  scInstance - The state chart instance
throws:
  ModelException - in case there is a fatal SCXML object model problem.



followTransitions
void followTransitions(Step step, ErrorReporter errorReporter, SCInstance scInstance) throws ModelException(Code)
Follow the candidate transitions for this execution Step, and update the lists of entered and exited states accordingly.
Parameters:
  step - The current Step
Parameters:
  errorReporter - The ErrorReporter for the current environment
Parameters:
  scInstance - The state chart instance
throws:
  ModelException - in case there is a fatal SCXML object model problem.



initiateInvokes
void initiateInvokes(Step step, ErrorReporter errRep, SCInstance scInstance)(Code)
Initiate any new invoked activities.
Parameters:
  step - The current Step
Parameters:
  errRep - ErrorReporter callback
Parameters:
  scInstance - The state chart instance



normalizeStateMachine
SCXML normalizeStateMachine(SCXML input, ErrorReporter errRep)(Code)
Optional post processing immediately following Digester. May be used for removing pseudo-states etc.
Parameters:
  input - SCXML state machine normalized SCXML state machine, pseudo states are removed, etc.
Parameters:
  errRep - ErrorReporter callback



processInvokes
void processInvokes(TriggerEvent[] events, ErrorReporter errRep, SCInstance scInstance) throws ModelException(Code)
Forward events to invoked activities, execute finalize handlers.
Parameters:
  events - The events to be forwarded
Parameters:
  errRep - ErrorReporter callback
Parameters:
  scInstance - The state chart instance
throws:
  ModelException - in case there is a fatal SCXML object model problem.



updateHistoryStates
void updateHistoryStates(Step step, ErrorReporter errRep, SCInstance scInstance)(Code)
Go over the exit list and update history information for relevant states.
Parameters:
  step - The current Step
Parameters:
  errRep - ErrorReporter callback
Parameters:
  scInstance - The state chart instance



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.