KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > openccm > Components > PortInfo


1 /*====================================================================
2
3 OpenCCM: The Open CORBA Component Model Platform
4 Copyright (C) 2000-2002 USTL - LIFL - GOAL
5 Contact: openccm-team@objectweb.org
6
7 This library is free software; you can redistribute it and/or
8 modify it under the terms of the GNU Lesser General Public
9 License as published by the Free Software Foundation; either
10 version 2.1 of the License, or any later version.
11
12 This library is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 Lesser General Public License for more details.
16
17 You should have received a copy of the GNU Lesser General Public
18 License along with this library; if not, write to the Free Software
19 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
20 USA
21
22 Initial developer(s): Mathieu Vadet, Philippe Merle.
23 Contributor(s): ______________________________________.
24
25 ====================================================================*/

26
27 package org.objectweb.openccm.Components;
28
29 /**
30  * This class is used to provide an unified view of executor objects.
31  * In fact, facets and event sinks are encapsulated in this class
32  * so that they can be managed as components or homes.
33  *
34  * @author <a HREF="mailto:Philippe.Merle@lifl.fr">Philippe Merle</a>
35  * <a HREF="mailto:Mathieu.Vadet@lifl.fr">Mathieu Vadet</a>
36  *
37  * @version 0.3
38  */

39
40 public class PortInfo
41 {
42     // ==================================================================
43
//
44
// Public constants.
45
//
46
// ==================================================================
47

48     /**
49      **
50      **/

51     public static final int pk_provides = 1;
52
53     /**
54      **
55      **/

56     public static final int pk_uses = 2;
57
58     /**
59      **
60      **/

61     public static final int pk_consumes = 3;
62
63     /**
64      **
65      **/

66     public static final int pk_emits = 4;
67
68     /**
69      **
70      **/

71     public static final int pk_publishes = 5;
72
73     // ==================================================================
74
//
75
// Internal state.
76
//
77
// ==================================================================
78

79     /**
80      **
81      **/

82     private java.lang.String JavaDoc repid_;
83
84     /**
85      **
86      **/

87     private java.lang.String JavaDoc type_id_;
88
89     /**
90      **
91      **/

92     private java.lang.String JavaDoc name_;
93
94     /**
95      **
96      **/

97     private int kind_;
98
99     // ==================================================================
100
//
101
// Constructor.
102
//
103
// ==================================================================
104

105     /**
106      **
107      **/

108     public
109     PortInfo(java.lang.String JavaDoc repid,
110              java.lang.String JavaDoc name,
111              java.lang.String JavaDoc type_id,
112              int kind)
113     {
114         repid_ = repid;
115         type_id_ = type_id;
116         name_ = name;
117         kind_ = kind;
118     }
119
120     // ==================================================================
121
//
122
// Public methods.
123
//
124
// ==================================================================
125

126     /**
127      **
128      **/

129     public java.lang.String JavaDoc
130     id()
131     {
132         return repid_;
133     }
134
135     /**
136      **
137      **/

138     public java.lang.String JavaDoc
139     type_id()
140     {
141         return type_id_;
142     }
143
144     /**
145      **
146      **/

147     public java.lang.String JavaDoc
148     name()
149     {
150         return name_;
151     }
152
153     /**
154      **
155      **/

156     public int
157     kind()
158     {
159         return kind_;
160     }
161 }
162
Popular Tags