KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > ccm > runtime > Sink


1 // ====================================================================
2
//
3
// ECM: The Extensible Container Model
4
// Copyright (C) 2004 THALES
5
// Contact: openccm-ecm@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.
23
// Initial Funding: IST COACH European project (IST-2001-34445)
24
// http://www.ist-coach.org
25
//
26
// ====================================================================
27

28
29
30 package org.objectweb.ccm.runtime;
31
32 import org.objectweb.corba.runtime.*;
33
34 /**
35  ** <p></p>
36  **/

37 public class Sink
38 implements java.io.Serializable JavaDoc
39 {
40     // sink
41
static final private String JavaDoc _class_name = "Sink";
42     // public fields
43
public String JavaDoc name;
44     public String JavaDoc type_id;
45     // NOTE: for segmented components only
46
public short facet_id;
47     public short segment_id;
48
49     // constructor for serialization
50
public
51     Sink()
52     {
53         // sink
54
name = null;
55         type_id = null;
56         facet_id = -1;
57         segment_id = -1;
58     }
59
60     // constructor for monolithic components
61
public
62     Sink(String JavaDoc n, String JavaDoc tid)
63     {
64         // sink
65
name = n;
66         type_id = tid;
67         facet_id = -1;
68         segment_id = -1;
69     }
70
71     // constructor for segmented components
72
public
73     Sink(String JavaDoc n, String JavaDoc tid, short fid, short sid)
74     {
75         // sink
76
name = n;
77         type_id = tid;
78         facet_id = fid;
79         segment_id = sid;
80     }
81 }
82
Popular Tags