示例#1
0
 public void CancelAllSubscriptions(HomeOS.Hub.Platform.Contracts.IModule module, HomeOS.Hub.Platform.Contracts.IPort controlPort, HomeOS.Hub.Platform.Contracts.ICapability controlportcap)
 {
     _view.CancelAllSubscriptions(ModuleAdapter.C2V(module), PortAdapter.C2V(controlPort), CapabilityAdapter.C2V(controlportcap));
 }
示例#2
0
 public ICapability GetCapability(IModule module, IPort targetPort, string username, string password)
 {
     return(CapabilityAdapter.V2C(_view.GetCapability(ModuleAdapter.C2V(module), PortAdapter.C2V(targetPort), username, password)));
 }
示例#3
0
 public void CancelAllSubscriptions(VModule module, VPort controlPort, VCapability controlportcap)
 {
     _contract.CancelAllSubscriptions(ModuleAdapter.V2C(module), PortAdapter.V2C(controlPort), CapabilityAdapter.V2C(controlportcap));
 }
示例#4
0
 public VCapability GetCapability(VModule module, VPort targetPort, string username, string password)
 {
     return(CapabilityAdapter.C2V(_contract.GetCapability(ModuleAdapter.V2C(module), PortAdapter.V2C(targetPort), username, password)));
 }
示例#5
0
文件: AModule.cs 项目: RBSystems/LoT
 public override int InstallCapability(VCapability capability, VPort targetPort)
 {
     return(_contract.InstallCapability(CapabilityAdapter.V2C(capability), PortAdapter.V2C(targetPort)));
 }
示例#6
0
文件: AModule.cs 项目: RBSystems/LoT
        //***

        public int InstallCapability(HomeOS.Hub.Platform.Contracts.ICapability capability, HomeOS.Hub.Platform.Contracts.IPort targetPort)
        {
            return(_view.InstallCapability(CapabilityAdapter.C2V(capability), PortAdapter.C2V(targetPort)));
        }
示例#7
0
文件: APort.cs 项目: RBSystems/LoT
 public override bool Subscribe(string roleName, string opName, VPort fromPort, VCapability reqCap, VCapability respCap)
 {
     return(_contract.Subscribe(roleName, opName, PortAdapter.V2C(fromPort), CapabilityAdapter.V2C(reqCap), CapabilityAdapter.V2C(respCap)));
 }
示例#8
0
文件: APort.cs 项目: RBSystems/LoT
 public void AsyncReturn(string roleName, string opName, IListContract <IParamType> retVals, IPort p, ICapability respCap)
 {
     _view.AsyncReturn(roleName, opName,
                       CollectionAdapters.ToIList <IParamType, VParamType>(retVals, BaseTypeAdapter.C2V, BaseTypeAdapter.V2C),
                       PortAdapter.C2V(p), CapabilityAdapter.C2V(respCap));
 }
示例#9
0
文件: APort.cs 项目: RBSystems/LoT
 public IListContract <IParamType> Invoke(string roleName, string opName, IListContract <IParamType> parameters, IPort p, ICapability reqCap, ICapability respCap)
 {
     return(CollectionAdapters.ToIListContract <VParamType, IParamType>(_view.Invoke(roleName, opName,
                                                                                     CollectionAdapters.ToIList <IParamType, VParamType>(parameters, BaseTypeAdapter.C2V, BaseTypeAdapter.V2C),
                                                                                     PortAdapter.C2V(p),
                                                                                     CapabilityAdapter.C2V(reqCap),
                                                                                     CapabilityAdapter.C2V(respCap)),
                                                                        BaseTypeAdapter.V2C, BaseTypeAdapter.C2V));
 }
示例#10
0
文件: APort.cs 项目: RBSystems/LoT
 public bool Unsubscribe(string roleName, string opName, IPort fromPort, ICapability respCap)
 {
     return(_view.Unsubscribe(roleName, opName, PortAdapter.C2V(fromPort), CapabilityAdapter.C2V(respCap)));
 }
示例#11
0
文件: APort.cs 项目: RBSystems/LoT
 public override void AsyncReturn(string roleName, string opName, IList <VParamType> retVals, VPort p, VCapability respCap)
 {
     _contract.AsyncReturn(roleName, opName,
                           CollectionAdapters.ToIListContract <VParamType, IParamType>(retVals, BaseTypeAdapter.V2C, BaseTypeAdapter.C2V),
                           PortAdapter.V2C(p), CapabilityAdapter.V2C(respCap));
 }