Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members

State.hpp

Go to the documentation of this file.
00001 /* 00002 * Copyright (C) 2004 Andrew Sutton 00003 * 00004 * This library is free software; you can redistribute it and/or 00005 * modify it under the terms of the GNU Lesser General Public 00006 * License as published by the Free Software Foundation; either 00007 * version 2.1 of the License, or (at your option) any later version. 00008 * 00009 * This library is distributed in the hope that it will be useful, 00010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00012 * Lesser General Public License for more details. 00013 * 00014 * You should have received a copy of the GNU Lesser General Public 00015 * License along with this library; if not, write to: 00016 * 00017 * The Free Software Foundation, Inc. 00018 * 59 Temple Place, Suite 330 00019 * Boston, MA 02111-1307 USA 00020 * 00021 * Contact: 00022 * Andrew Sutton asutton@cs.kent.edu 00023 */ 00024 00025 #ifndef UML_STATE_HPP 00026 #define UML_STATE_HPP 00027 00028 #include <UML/StateVertex.hpp> 00029 00030 namespace UML 00031 { 00032 // forward declarations 00033 class State; 00034 class Action; 00035 class Action; 00036 class Event; 00037 class Transition; 00038 class Action; 00039 class StateMachine; 00040 00041 class State : virtual public UML::StateVertex 00042 { 00043 public: 00044 typedef OMF::BasicClass<State, OMF::Abstract> Proxy; 00045 00046 State(); 00047 virtual ~State(); 00048 00049 Action *entry(); 00050 void setEntry(Action *value); 00051 void clearEntry(); 00052 00053 Action *exit(); 00054 void setExit(Action *value); 00055 void clearExit(); 00056 00057 const OMF::Set &deferrableEvent(); 00058 void addDeferrableEvent(Event *value); 00059 void removeDeferrableEvent(Event *value); 00060 void clearDeferrableEvent(); 00061 00062 const OMF::Set &internalTransition(); 00063 void addInternalTransition(Transition *value); 00064 void removeInternalTransition(Transition *value); 00065 void clearInternalTransition(); 00066 00067 Action *doActivity(); 00068 void setDoActivity(Action *value); 00069 void clearDoActivity(); 00070 00071 StateMachine *stateMachine(); 00072 void setStateMachine(StateMachine *value); 00073 void clearStateMachine(); 00074 00075 private: 00076 Action *_entry; 00077 Action *_exit; 00078 OMF::Set _deferrableEvent; 00079 OMF::Set _internalTransition; 00080 Action *_doActivity; 00081 StateMachine *_stateMachine; 00082 }; 00083 00084 00085 } 00086 00087 #endif

Generated on Fri Sep 10 13:07:33 2004 for OpenModelingFramework by doxygen 1.3.8