Ejemplo n.º 1
0
 public int DeregisterPort(HomeOS.Hub.Platform.Contracts.IPort port, HomeOS.Hub.Platform.Contracts.IModule module)
 {
     return(_view.DeregisterPort(PortAdapter.C2V(port), ModuleAdapter.C2V(module)));
 }
Ejemplo n.º 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)));
 }
Ejemplo n.º 3
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)));
 }
Ejemplo n.º 4
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));
 }
Ejemplo n.º 5
0
 public void CancelAllSubscriptions(VModule module, VPort controlPort, VCapability controlportcap)
 {
     _contract.CancelAllSubscriptions(ModuleAdapter.V2C(module), PortAdapter.V2C(controlPort), CapabilityAdapter.V2C(controlportcap));
 }
Ejemplo n.º 6
0
        //***

        public int DeregisterPort(VPort port, VModule module)
        {
            return(_contract.DeregisterPort(PortAdapter.V2C(port), ModuleAdapter.V2C(module)));
        }
Ejemplo n.º 7
0
 public void PortDeregistered(HomeOS.Hub.Platform.Contracts.IPort port)
 {
     _view.PortDeregisteredWithHooks(PortAdapter.C2V(port));
 }
Ejemplo n.º 8
0
        //***

        public int InstallCapability(HomeOS.Hub.Platform.Contracts.ICapability capability, HomeOS.Hub.Platform.Contracts.IPort targetPort)
        {
            return(_view.InstallCapability(CapabilityAdapter.C2V(capability), PortAdapter.C2V(targetPort)));
        }
Ejemplo n.º 9
0
 public override int InstallCapability(VCapability capability, VPort targetPort)
 {
     return(_contract.InstallCapability(CapabilityAdapter.V2C(capability), PortAdapter.V2C(targetPort)));
 }
Ejemplo n.º 10
0
 public override void PortDeregistered(VPort port)
 {
     _contract.PortDeregistered(PortAdapter.V2C(port));
 }
Ejemplo n.º 11
0
 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)));
 }
Ejemplo n.º 12
0
 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));
 }
Ejemplo n.º 13
0
 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));
 }
Ejemplo n.º 14
0
 public bool Unsubscribe(string roleName, string opName, IPort fromPort, ICapability respCap)
 {
     return(_view.Unsubscribe(roleName, opName, PortAdapter.C2V(fromPort), CapabilityAdapter.C2V(respCap)));
 }
Ejemplo n.º 15
0
 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));
 }