#include "UmlStateDiagram.h" #include "UmlState.h" QCString UmlState::sKind() { return (parent()->kind() == aClassView) ? "state machine" : "state"; } void UmlState::html(QCString pfix, unsigned int rank, unsigned int level) { define(); chapter((parent()->kind() == aClassView) ? "StateMachine" : "State", pfix, rank, "state", level); QCString s = description(); if (!s.isEmpty()) { fw.write("

"); writeq(description()); fw.write("

"); } fw.write("

Entry Behavior :

"); fw.write("

Exit Behavior :

"); fw.write("

Do activity :

"); UmlStateDiagram * d = associatedDiagram(); if (d != 0) { fw.write("

Diagram : "); d->write(); fw.write("

"); } write_properties(); write_children(pfix, rank, level); unload(FALSE, FALSE); } void UmlState::memo_ref() { states.addElement(this); UmlItem::memo_ref(); } void UmlState::ref_index() { if (!states.isEmpty()) fw.write(" -States- "); } void UmlState::generate_index() { UmlItem::generate_index(states, "States", "states"); } bool UmlState::chapterp() { return TRUE; } Vector UmlState::states;