Esempio n. 1
0
 sck.Integer getDesiredFR(int ivChIndex) {
   if (videoTable.containsKey(new Integer(ivChIndex))) {
     videoEntry_t auxVideoEntry = (videoEntry_t) videoTable.get(new Integer(ivChIndex));
     return auxVideoEntry.getvideoDesiredFR();
   } else {
     return null;
   }
 }
Esempio n. 2
0
 // If time goes by and nobody sends information about the video,
 // the ttl will be incremented for all the channels.
 void IncrementAllChannelsTTL() {
   Enumeration keys = videoTable.keys();
   while (keys.hasMoreElements()) {
     Integer auxkey = (Integer) keys.nextElement();
     videoEntry_t auxEntry = (videoEntry_t) videoTable.get(auxkey);
     if ((auxEntry.getvideoTTL()) < 10) {
       auxEntry.incrementTTL();
       videoTable.put(auxkey, auxEntry);
     } else {
       deleteChannel(auxkey);
     }
   }
 }
Esempio n. 3
0
 sck.Integer getReceivedBW(int ivChIndex) {
   if (videoTable.containsKey(new Integer(ivChIndex))) {
     videoEntry_t auxVideoEntry = (videoEntry_t) videoTable.get(new Integer(ivChIndex));
     return auxVideoEntry.getvideoReceivedBW();
   } else return null;
 }
Esempio n. 4
0
 sck.OctetString getImageSize(int ivChIndex) {
   if (videoTable.containsKey(new Integer(ivChIndex))) {
     videoEntry_t auxVideoEntry = (videoEntry_t) videoTable.get(new Integer(ivChIndex));
     return auxVideoEntry.getvideoImageSize();
   } else return null;
 }