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

CollaborationInstanceSet.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_COLLABORATIONINSTANCESET_HPP 00026 #define UML_COLLABORATIONINSTANCESET_HPP 00027 00028 #include <UML/ModelElement.hpp> 00029 00030 namespace UML 00031 { 00032 // forward declarations 00033 class CollaborationInstanceSet; 00034 class CollaborationInstanceSetImpl; 00035 class InteractionInstanceSet; 00036 class Collaboration; 00037 class Instance; 00038 class Link; 00039 class ModelElement; 00040 00041 class CollaborationInstanceSet : virtual public UML::ModelElement 00042 { 00043 public: 00044 typedef OMF::BasicClass<CollaborationInstanceSetImpl> Proxy; 00045 00046 CollaborationInstanceSet(); 00047 virtual ~CollaborationInstanceSet(); 00048 00049 const OMF::Set &interactionInstanceSet(); 00050 void addInteractionInstanceSet(InteractionInstanceSet *value); 00051 void removeInteractionInstanceSet(InteractionInstanceSet *value); 00052 void clearInteractionInstanceSet(); 00053 00054 Collaboration *collaboration(); 00055 void setCollaboration(Collaboration *value); 00056 void clearCollaboration(); 00057 00058 const OMF::Set &participatingInstance(); 00059 void addParticipatingInstance(Instance *value); 00060 void removeParticipatingInstance(Instance *value); 00061 void clearParticipatingInstance(); 00062 00063 const OMF::Set &participatingLink(); 00064 void addParticipatingLink(Link *value); 00065 void removeParticipatingLink(Link *value); 00066 void clearParticipatingLink(); 00067 00068 const OMF::Set &constrainingElement(); 00069 void addConstrainingElement(ModelElement *value); 00070 void removeConstrainingElement(ModelElement *value); 00071 void clearConstrainingElement(); 00072 00073 private: 00074 OMF::Set _interactionInstanceSet; 00075 Collaboration *_collaboration; 00076 OMF::Set _participatingInstance; 00077 OMF::Set _participatingLink; 00078 OMF::Set _constrainingElement; 00079 }; 00080 00081 00082 struct CollaborationInstanceSetImpl : virtual public UML::CollaborationInstanceSet 00083 { 00084 CollaborationInstanceSetImpl() : 00085 OMF::ModelObject( 00086 "UML.CollaborationInstanceSet", 00087 &CollaborationInstanceSet::Proxy::instance(), 00088 &UMLPackage::instance()), 00089 Element(), 00090 ModelElement(), 00091 CollaborationInstanceSet() 00092 {} 00093 00094 virtual ~CollaborationInstanceSetImpl() 00095 {} 00096 }; 00097 } 00098 00099 #endif

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