예제 #1
0
 public int ModuleFinished(IModule module)
 {
     return(_view.ModuleFinished(ModuleAdapter.C2V(module)));
 }
예제 #2
0
 public void SetRoles(IPortInfo portInfo, IListContract <IRole> roles, IModule module)
 {
     _view.SetRoles(PortInfoAdapter.C2V(portInfo),
                    CollectionAdapters.ToIList <IRole, VRole>(roles, RoleAdapter.C2V, RoleAdapter.V2C),
                    ModuleAdapter.C2V(module));
 }
예제 #3
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)));
 }
예제 #4
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)));
 }
예제 #5
0
 public HomeOS.Hub.Platform.Contracts.IPortInfo GetPortInfo(string moduleFacingName, HomeOS.Hub.Platform.Contracts.IModule module)
 {
     return(PortInfoAdapter.V2C(_view.GetPortInfo(moduleFacingName, ModuleAdapter.C2V(module))));
 }
예제 #6
0
 //***
 public void UpdateState(HomeOS.Hub.Platform.Contracts.IModule module, HomeOS.Hub.Platform.Contracts.IModuleState state)
 {
     _view.UpdateState(ModuleAdapter.C2V(module), ModuleStateAdapter.C2V(state));
 }
예제 #7
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));
 }
예제 #8
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)));
 }
예제 #9
0
 public int ModuleFinished(VModule module)
 {
     return(_contract.ModuleFinished(ModuleAdapter.V2C(module)));
 }
예제 #10
0
 public void SetRoles(VPortInfo portInfo, IList <VRole> roles, VModule module)
 {
     _contract.SetRoles(PortInfoAdapter.V2C(portInfo),
                        CollectionAdapters.ToIListContract <VRole, IRole>(roles, RoleAdapter.V2C, RoleAdapter.C2V),
                        ModuleAdapter.V2C(module));
 }
예제 #11
0
 public VPortInfo GetPortInfo(string moduleFacingName, VModule module)
 {
     return(PortInfoAdapter.C2V(_contract.GetPortInfo(moduleFacingName, ModuleAdapter.V2C(module))));
 }
예제 #12
0
        //***

        public int DeregisterPort(VPort port, VModule module)
        {
            return(_contract.DeregisterPort(PortAdapter.V2C(port), ModuleAdapter.V2C(module)));
        }
예제 #13
0
 public void CancelAllSubscriptions(VModule module, VPort controlPort, VCapability controlportcap)
 {
     _contract.CancelAllSubscriptions(ModuleAdapter.V2C(module), PortAdapter.V2C(controlPort), CapabilityAdapter.V2C(controlportcap));
 }
예제 #14
0
 //***
 public void UpdateState(VModule module, VModuleState state)
 {
     _contract.UpdateState(ModuleAdapter.V2C(module), ModuleStateAdapter.V2C(state));
 }