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; } }
// 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); } } }
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; }
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; }