/// <summary>
 /// Adds the specified <b>box module factory</b>.
 /// </summary>
 /// <param name="factoryProxy">The proxy of the <b>box module factory</b>.</param>
 /// <param name="factory">The <b>box module factory</b>.</param>
 public void Add(BoxModuleFactoryPrx factoryProxy, BoxModuleFactoryI factory)
 {
     lock (this)
     {
         _factories.Add(new BoxModuleFactoryProxyPair(factoryProxy, factory));
     }
 }
 public void Add(BoxModuleFactoryPrx proxy, PropertyBoxModuleFactoryI factory)
 {
     lock (this)
     {
         _factories.Add(new BoxModuleFactoryProxyPair(proxy, factory));
     }
 }
 ///<summary>
 /// Constructor
 /// </summary>
 /// <param name="factory">A  BoxModuleFactoryPrx</param>
 /// <param name="propertyClassIceId">A  string</param>
 /// <param name="propertyFunctionsIceIds">A  string[]</param>
 /// <param name="identifier">A  string</param>
 public PropertyBoxModuleI(BoxModuleFactoryPrx factory, string propertyClassIceId, string[] propertyFunctionsIceIds, Ice.ObjectAdapter adapter, Ice.Identity myIdentity, Modules.PropertyBoxModuleFactoryCreatorI.ValueFromPrx valueFromPrx, PropertyValue defaultValue)
 {
     this.factory = factory;
     this.propertyClassIceId = propertyClassIceId;
     this.propertyFunctionsIceIds = propertyFunctionsIceIds;
     this.myProxy = BoxModulePrxHelper.uncheckedCast(adapter.add(this,myIdentity));
     this.adapter = adapter;
     this.valueFromPrx = valueFromPrx;
     this.defaultValue = defaultValue;
     this.setProperty("value",defaultValue);
 }
 public PropertyBoxModuleFactoryI(string propertyClassIceId,
     string[] propertyFunctionsIceIds,
     BoxModuleFactoryCreatorPrx myFactoryCreatorProxy,
     string[] localePrefs,
     PropertyValue defaultValue,
     PropertyBoxModuleFactoryCreatorI.ValueFromPrx valueFromPrx,
     Ice.ObjectAdapter adapter,
     string settingModuleIdentifier)
 {
     this.propertyClassIceId = propertyClassIceId;
     this.propertyFunctionsIceIds = propertyFunctionsIceIds;
     //this.localePrefs = localePrefs;
     this.myFactoryCreatorProxy = myFactoryCreatorProxy;
     this.defaultValue = defaultValue;
     this.valueFromPrx = valueFromPrx;
     this.myProxy = BoxModuleFactoryPrxHelper.uncheckedCast(adapter.addWithUUID(this));
     this.settingModuleIdentifier = settingModuleIdentifier;
 }
 /// <summary>
 /// Initializes a new instance of the 
 /// <see cref="T:Ferda.Modules.ReapThread.BoxModuleFactoryProxyPair"/> class.
 /// </summary>
 /// <param name="factoryProxy">The proxy of the <b>box module factory</b>.</param>
 /// <param name="factory">The <b>box module factory</b>.</param>
 public BoxModuleFactoryProxyPair(BoxModuleFactoryPrx factoryProxy, BoxModuleFactoryI factory)
 {
     this.factoryProxy = factoryProxy;
     this.factory = factory;
 }
        /// <summary>
        /// Initializes a new instance of the 
        /// <see cref="T:Ferda.Modules.BoxModuleI"/> class.
        /// </summary>
        /// <param name="boxInfo">The box info.</param>
        /// <param name="myIdentity">My identity.</param>
        /// <param name="myFactoryProxy">My factory proxy.</param>
        /// <param name="manager">The manager.</param>
        /// <param name="adapter">The adapter.</param>
        /// <param name="localePrefs">The localization preferences.</param>
        public BoxModuleI(IBoxInfo boxInfo,
            Ice.Identity myIdentity,
            BoxModuleFactoryPrx myFactoryProxy,
            Ferda.ModulesManager.ManagersEnginePrx manager,
            Ice.ObjectAdapter adapter,
            string[] localePrefs)
        {
            System.Diagnostics.Debug.WriteLine("BoxModuleI Constructor (entering): " + boxInfo.Identifier);

            // initializes inner fields by specified parameters
            this.boxInfo = boxInfo;
            this.iceIdentity = myIdentity;
            this.stringIceIdentity = Ice.Util.identityToString(IceIdentity);
            this.myFactoryProxy = myFactoryProxy;
            this.manager = manager;
            this.adapter = adapter;
            this.localePrefs = localePrefs;

            // add the new box module to the specified adapter
            adapter.add(this, this.iceIdentity);
            // get my proxy
            this.myProxy = BoxModulePrxHelper.uncheckedCast(adapter.createProxy(myIdentity));

            // initializes box module`s functions object
            this.boxInfo.CreateFunctions(this, out this.functionsIceObj, out this.functionsIObj);
            this.functionsIObj.setBoxModuleInfo(this, this.boxInfo);
            this.functionsObjPrx = Ice.ObjectPrxHelper.uncheckedCast(adapter.addWithUUID(this.functionsIceObj));

            // initializes properties
            this.properties = new Dictionary<string, PropertyValue>();
            foreach (string propertyName in boxInfo.GetPropertiesNames())
            {
                if (!boxInfo.IsPropertyReadOnly(propertyName))
                {
                    this.setProperty(propertyName, boxInfo.GetPropertyDefaultValue(propertyName));
                }
            }

            // initializes sockets (connections and functions)
            this.connections = new Dictionary<string, Dictionary<string, BoxModulePrx>>();
            foreach (string socketName in boxInfo.GetSocketNames())
            {
                connections[socketName] = new Dictionary<string, BoxModulePrx>();
            }

            System.Diagnostics.Debug.WriteLine("BoxModuleI Constructor (leaving): " + this.boxInfo.Identifier);
        }
 public BoxModuleFactoryProxyPair(BoxModuleFactoryPrx p, PropertyBoxModuleFactoryI s)
 {
     proxy = p;
     factory = s;
 }