Java Doc for SCXMLSemanticsImpl.java in  » Library » Apache-commons-scxml-0.6-src » org » apache » commons » scxml » semantics » 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.semantics 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.commons.scxml.semantics.SCXMLSemanticsImpl

SCXMLSemanticsImpl
public class SCXMLSemanticsImpl implements SCXMLSemantics,Serializable(Code)

This class encapsulates a particular SCXML semantics, that is, a particular semantic interpretation of Harel Statecharts, which aligns mostly with W3C SCXML July 5 public draft (that is, UML 1.5). However, certain aspects are taken from STATEMATE.

Specific semantics can be created by subclassing this class.





Method Summary
public  voiddetermineInitialStates(SCXML input, Set states, List entryList, ErrorReporter errRep, SCInstance scInstance)
    
public  voiddetermineTargetStates(Set states, ErrorReporter errRep, SCInstance scInstance)
    
public  voidenumerateReachableTransitions(SCXML stateMachine, Step step, ErrorReporter errRep)
    
protected  booleaneventMatch(String transEvent, Set eventOccurrences)
     Implements prefix match, that is, if, for example, "mouse.click" is a member of eventOccurrences and a transition is triggered by "mouse", the method returns true.
public  voidexecuteActions(Step step, SCXML stateMachine, EventDispatcher evtDispatcher, ErrorReporter errRep, SCInstance scInstance)
     Executes all OnExit/Transition/OnEntry transitional actions.
public  voidfilterTransitionsSet(Step step, EventDispatcher evtDispatcher, ErrorReporter errRep, SCInstance scInstance)
    
protected  booleanfinalizeMatch(String parentStateId, Set eventOccurrences)
     Implements event prefix match to ascertain <finalize> execution.
public  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.
protected  LoggetLog()
     Get the log used by this SCXMLSemantics instance.
protected  ComparatorgetTTComparator()
     TransitionTargetComparator factory method.
public  voidinitiateInvokes(Step step, ErrorReporter errRep, SCInstance scInstance)
     Initiate any new invokes.
public  SCXMLnormalizeStateMachine(SCXML input, ErrorReporter errRep)
    
public  voidprocessInvokes(TriggerEvent[] events, ErrorReporter errRep, SCInstance scInstance)
     Process any existing invokes, includes forwarding external events, and executing any finalize handlers.
public  SetseedTargetSet(Set residual, List transitList, ErrorReporter errRep)
     Populate the target set.
protected  voidsetLog(Log log)
     Set the log used by this SCXMLSemantics instance.
public  voidupdateHistoryStates(Step step, ErrorReporter errRep, SCInstance scInstance)
     Go over the exit list and update history information for relevant states.



Method Detail
determineInitialStates
public void determineInitialStates(SCXML input, Set states, List entryList, ErrorReporter errRep, SCInstance scInstance) throws ModelException(Code)

Parameters:
  input - SCXML state machine [in]
Parameters:
  states - a set of States to populate [out]
Parameters:
  entryList - a list of States and Parallels to enter [out]
Parameters:
  errRep - ErrorReporter callback [inout]
Parameters:
  scInstance - The state chart instance [in]
throws:
  ModelException - in case there is a fatal SCXML object model problem.



determineTargetStates
public void determineTargetStates(Set states, ErrorReporter errRep, SCInstance scInstance) throws ModelException(Code)

Parameters:
  states - a set seeded in previous step [inout]
Parameters:
  errRep - ErrorReporter callback [inout]
Parameters:
  scInstance - The state chart instance [in]
throws:
  ModelException - On illegal configuration
See Also:   SCXMLSemanticsImpl.seedTargetSet(Set,List,ErrorReporter)



enumerateReachableTransitions
public void enumerateReachableTransitions(SCXML stateMachine, Step step, ErrorReporter errRep)(Code)

Parameters:
  stateMachine - a SM to traverse [in]
Parameters:
  step - with current status and list of transitions to populate[inout]
Parameters:
  errRep - ErrorReporter callback [inout]



eventMatch
protected boolean eventMatch(String transEvent, Set eventOccurrences)(Code)
Implements prefix match, that is, if, for example, "mouse.click" is a member of eventOccurrences and a transition is triggered by "mouse", the method returns true.
Parameters:
  transEvent - a trigger event of a transition
Parameters:
  eventOccurrences - current events true/false



executeActions
public 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
public void filterTransitionsSet(Step step, EventDispatcher evtDispatcher, ErrorReporter errRep, SCInstance scInstance) throws ModelException(Code)

Parameters:
  step - [inout]
Parameters:
  evtDispatcher - The EventDispatcher [in]
Parameters:
  errRep - ErrorReporter callback [inout]
Parameters:
  scInstance - The state chart instance [in]
throws:
  ModelException - in case there is a fatal SCXML object model problem.



finalizeMatch
protected boolean finalizeMatch(String parentStateId, Set eventOccurrences)(Code)
Implements event prefix match to ascertain <finalize> execution.
Parameters:
  parentStateId - the ID of the parent state of the <invoke> holdingthe <finalize>
Parameters:
  eventOccurrences - current events true/false



followTransitions
public 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.



getLog
protected Log getLog()(Code)
Get the log used by this SCXMLSemantics instance. Log The log being used.



getTTComparator
protected Comparator getTTComparator()(Code)
TransitionTargetComparator factory method. Comparator The TransitionTarget comparator



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



normalizeStateMachine
public SCXML normalizeStateMachine(SCXML input, ErrorReporter errRep)(Code)

Parameters:
  input - SCXML state machine normalized SCXML state machine, pseudo states are removed, etc.
Parameters:
  errRep - ErrorReporter callback



processInvokes
public void processInvokes(TriggerEvent[] events, ErrorReporter errRep, SCInstance scInstance) throws ModelException(Code)
Process any existing invokes, includes forwarding external events, and executing any 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.



seedTargetSet
public Set seedTargetSet(Set residual, List transitList, ErrorReporter errRep)(Code)
Populate the target set.
  • take targets of selected transitions
  • take exited regions into account and make sure every active parallel region has all siblings active [that is, explicitly visit or sibling regions in case of newly visited (revisited) orthogonal states]

Parameters:
  residual - [in]
Parameters:
  transitList - [in]
Parameters:
  errRep - ErrorReporter callback [inout] Set The target set



setLog
protected void setLog(Log log)(Code)
Set the log used by this SCXMLSemantics instance.
Parameters:
  log - The new log.



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



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

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