07 Jul 2003 15:22:49 UTC
- Distribution: StateML
- Source (raw)
- Browse (raw)
- How to Contribute
- Testers (118 / 1 / 0)
- KwaliteeBus factor: 0
- 39.07% Coverage
- License: unknown
- Activity24 month
- Download (21.97KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest version
- METHODS (incomplete, see the source, luke)
StateML::Arc - A transition between states
An arc is a transition between states; they occur by default or on certain events.
A loopback arc is an arc that transits from a state back to itself.
Arcs can have handlers, either explicitly using one or more <handler>s or by reference to an <action> using an action-id attribute (we need to allow arcs to have multiple actions at some point).
Arcs can contain an <event>, in which case the <arc>'s event-id= is automatically read from the <event> (which in turn may omit it and let StateML::Machine assign one).
On parsing, <arc> elements may appear in <state> elements. When they do, the from= and/or to= attributes may be omitted; they will default to the parent state's id.
Returns the event for this arc, if set.
Returns the event_id if set. If not set (undef), returns the default event's ID if it is present in the machine. Note that "" is a not valid id.
Returns the name if set. If not set, returns the name of the event_id event (if that's set). Note that "" is a valid name.
Like StateML::Object::attribute, but inherits from the event.
Like StateML::Object::attributes, but inherits from all handlers and then the event.
Copyright 2003, R. Barrie Slaymaker, Jr., All Rights Reserved
You may use this module under the terms of the BSD, Artistic, or GPL licenses, any version.
Barrie Slaymaker <email@example.com>