Skip to main content
. 2019 Sep 23;19(19):4121. doi: 10.3390/s19194121
Algorithm 5: AllowedDirectCommunication Function
Require:CD1,CD2
Ensure: TrueorFalse
  if DirectCommunication(CD1, CD2) =False then
   return False
  end if
  for R C D1 do
   for R CD2 do
     if R[DOM]  R [DOM]
    and D1  R [SHARES]
    and  R[REQUIRES] R [PROVIDES]  then
      return False
    end if
   end for
  end for
  return True