Beispiel #1
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)));
 }
Beispiel #2
0
 public void CancelAllSubscriptions(VModule module, VPort controlPort, VCapability controlportcap)
 {
     _contract.CancelAllSubscriptions(ModuleAdapter.V2C(module), PortAdapter.V2C(controlPort), CapabilityAdapter.V2C(controlportcap));
 }
Beispiel #3
0
        //***

        public int DeregisterPort(VPort port, VModule module)
        {
            return(_contract.DeregisterPort(PortAdapter.V2C(port), ModuleAdapter.V2C(module)));
        }
Beispiel #4
0
 public override void PortDeregistered(VPort port)
 {
     _contract.PortDeregistered(PortAdapter.V2C(port));
 }
Beispiel #5
0
 public override int InstallCapability(VCapability capability, VPort targetPort)
 {
     return(_contract.InstallCapability(CapabilityAdapter.V2C(capability), PortAdapter.V2C(targetPort)));
 }
Beispiel #6
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)));
 }
Beispiel #7
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));
 }
Beispiel #8
0
 public override IList <VParamType> Invoke(string roleName, string opName, IList <VParamType> parameters, VPort p, VCapability reqCap, VCapability respCap)
 {
     return(CollectionAdapters.ToIList <IParamType, VParamType>(_contract.Invoke(roleName, opName,
                                                                                 CollectionAdapters.ToIListContract <VParamType, IParamType>(parameters, BaseTypeAdapter.V2C, BaseTypeAdapter.C2V),
                                                                                 PortAdapter.V2C(p),
                                                                                 CapabilityAdapter.V2C(reqCap),
                                                                                 CapabilityAdapter.V2C(respCap)),
                                                                BaseTypeAdapter.C2V, BaseTypeAdapter.V2C));
 }