📄 componentimpl.java
字号:
/*====================================================================This file was produced by the OpenCCM CIF generator.OpenCCM: The Open CORBA Component Model PlatformCopyright (C) 2000-2004 INRIA & USTL - LIFL - GOALContact: openccm@objectweb.orgThis library is free software; you can redistribute it and/ormodify it under the terms of the GNU Lesser General PublicLicense as published by the Free Software Foundation; eitherversion 2.1 of the License, or any later version.This library is distributed in the hope that it will be useful,but WITHOUT ANY WARRANTY; without even the implied warranty ofMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNULesser General Public License for more details.You should have received a copy of the GNU Lesser General PublicLicense along with this library; if not, write to the Free SoftwareFoundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307USAInitial developer(s): Philippe Merle, Christophe Demarey, Mathieu Vadet.Contributor(s): ______________________________________.====================================================================*/package org.objectweb.ccm.demo3.ConsumerSessionComposition;/** * Component Executor for Consumer */public abstract class ComponentImpl extends org.objectweb.ccm.runtime.cif.lib.SessionComponentSegmentBase implements CIF_ComponentImpl{ // ================================================================== // // Internal states. // // ================================================================== /** * The segmentation table. */ private static java.util.HashMap the_segmentation_table_; /** * The segment id. */ public final static int _segment_id_value = 0; /** * To refer to the component context. */ private org.objectweb.ccm.demo3.CCM_Consumer_Context the_context_; // ================================================================== // // Constructors. // // ================================================================== public ComponentImpl() { // Sets the number of segments. set_nb_segments(1); // Inits internal state. the_context_ = null; } // ================================================================== // // Methods. // // ================================================================== static { the_segmentation_table_ = new java.util.HashMap(); the_segmentation_table_.put("Consumer", new Integer(0)); the_segmentation_table_.put("from_servers", new Integer(0)); } /** * Obtain the segmentation table. * * @return A HashMap containing <facet_name, segid> associations. */ public java.util.HashMap get_segmentation_table() { return the_segmentation_table_; } /** * Set the session component context. * Must be implemented in subclasses. * * @param context The session component context. * * @throw org.omg.Components.CCMException For any problems. */ public void set_session_context(org.omg.Components.SessionContext context) throws org.omg.Components.CCMException { the_context_ = (org.objectweb.ccm.demo3.CCM_Consumer_Context)context; } /** * Obtain the context. * * @return The associated context. */ public org.objectweb.ccm.demo3.CCM_Consumer_Context get_context() { return the_context_; } /** * Obtain the main executor segment. * * @return The main segment (with id = 0). */ public CIF_ComponentImpl get_main_segment() { return this; } }
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -