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

Transition.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_TRANSITION_HPP 00026 #define UML_TRANSITION_HPP 00027 00028 #include <UML/ModelElement.hpp> 00029 00030 namespace UML 00031 { 00032 // forward declarations 00033 class Transition; 00034 class TransitionImpl; 00035 class Guard; 00036 class Action; 00037 class Event; 00038 class StateVertex; 00039 class StateVertex; 00040 class StateMachine; 00041 00042 class Transition : virtual public UML::ModelElement 00043 { 00044 public: 00045 typedef OMF::BasicClass<TransitionImpl> Proxy; 00046 00047 Transition(); 00048 virtual ~Transition(); 00049 00050 Guard *guard(); 00051 void setGuard(Guard *value); 00052 void clearGuard(); 00053 00054 Action *effect(); 00055 void setEffect(Action *value); 00056 void clearEffect(); 00057 00058 Event *trigger(); 00059 void setTrigger(Event *value); 00060 void clearTrigger(); 00061 00062 StateVertex *source(); 00063 void setSource(StateVertex *value); 00064 void clearSource(); 00065 00066 StateVertex *target(); 00067 void setTarget(StateVertex *value); 00068 void clearTarget(); 00069 00070 StateMachine *stateMachine(); 00071 void setStateMachine(StateMachine *value); 00072 void clearStateMachine(); 00073 00074 private: 00075 Guard *_guard; 00076 Action *_effect; 00077 Event *_trigger; 00078 StateVertex *_source; 00079 StateVertex *_target; 00080 StateMachine *_stateMachine; 00081 }; 00082 00083 00084 struct TransitionImpl : virtual public UML::Transition 00085 { 00086 TransitionImpl() : 00087 OMF::ModelObject( 00088 "UML.Transition", 00089 &Transition::Proxy::instance(), 00090 &UMLPackage::instance()), 00091 Element(), 00092 ModelElement(), 00093 Transition() 00094 {} 00095 00096 virtual ~TransitionImpl() 00097 {} 00098 }; 00099 } 00100 00101 #endif

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