CADI.Proxy.Core
Class ProxyRequestedWOIs

java.lang.Object
  extended by CADI.Proxy.Core.ProxyRequestedWOIs

public class ProxyRequestedWOIs
extends java.lang.Object

This class is used as a shared memory between the CachedProxy and the ProxyPrefetching classes. The former adds the new requested wois and the later gets the wois in order to perform the proxy prefetching.

Version:
1.0 23/09/2009
Author:
Group on Interactive Coding of Images (GICI)

Field Summary
private  java.util.Map<java.lang.String,java.util.ArrayList<ViewWindowField>> wois
          This object is used to store the wois requested by clientes for each logical target that is being cached.
 
Constructor Summary
ProxyRequestedWOIs()
          Constructor.
 
Method Summary
 void addWOI(java.lang.String tid, ViewWindowField woi)
           
 java.lang.String getTID()
           
 java.util.Set<java.lang.String> getTIDs()
           
 java.util.ArrayList<ViewWindowField> getWOIs(java.lang.String tid)
           
 void list(java.io.PrintStream out)
          Prints this Proxy Requested WOIs fields out to the specified output stream.
 void removeByTID(java.lang.String tid)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

wois

private java.util.Map<java.lang.String,java.util.ArrayList<ViewWindowField>> wois
This object is used to store the wois requested by clientes for each logical target that is being cached.

The key is the logical target's unique identifier defined in the ProxyCacheLogicalTargets. And the value is an array list with the requested wois for the logical target.

Constructor Detail

ProxyRequestedWOIs

public ProxyRequestedWOIs()
Constructor.

Method Detail

addWOI

public void addWOI(java.lang.String tid,
                   ViewWindowField woi)
Parameters:
woi -

removeByTID

public void removeByTID(java.lang.String tid)
Parameters:
tid -

getTID

public java.lang.String getTID()
                        throws java.lang.InterruptedException
Returns:
Throws:
java.lang.InterruptedException

getWOIs

public java.util.ArrayList<ViewWindowField> getWOIs(java.lang.String tid)
Parameters:
tid -
Returns:

getTIDs

public java.util.Set<java.lang.String> getTIDs()
Returns:

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

list

public void list(java.io.PrintStream out)
Prints this Proxy Requested WOIs fields out to the specified output stream. This method is useful for debugging.

Parameters:
out - an output stream.


CADI - Copyright (C) 2007
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

Group on Interactive Coding of Images (GICI) (contact)