CADI.Proxy.Core
Class ProxyPrefetching

java.lang.Object
  extended by java.lang.Thread
      extended by CADI.Proxy.Core.ProxyPrefetching
All Implemented Interfaces:
java.lang.Runnable

public class ProxyPrefetching
extends java.lang.Thread

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

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
private  int cacheDescriptorSubType
           
private  int cacheDescriptorType
           
private  ProxyCacheManagement cacheManagement
           
private  FetchTarget fetchTarget
           
private  boolean finish
          Indicates whether the thread has to finish.
private  HTTPClient httpClient
           
private  CADILog log
          It is an object that will be used to log the server process
private  ProxyCacheLogicalTargets proxyCacheLogicalTargets
          Definition in CADI.Proxy.Proxy#logicalTargetList.
private  ProxyMutex proxyMutex
           
private  ProxyRequestedWOIs requestedWOIs
           
private  int rlIndex
           
private  StopWatch stopWatch
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
ProxyPrefetching()
          This class constructor is not allowed.
ProxyPrefetching(java.lang.String threadName, ProxyCacheLogicalTargets proxyCacheLogicalTargets, ProxyRequestedWOIs requestedWOIs, ProxyMutex proxyMutex, CADILog log)
           
 
Method Summary
private  ViewWindowField calculateWOIsBoundingBox(java.util.ArrayList<ViewWindowField> woisList)
           
private  ViewWindowField calculateWOIsBoundingBoxPan(java.util.ArrayList<ViewWindowField> woisList)
           
private  ViewWindowField calculateWOIsBoundingBoxZoom(java.util.ArrayList<ViewWindowField> woisList, int index)
           
 void run()
           
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

proxyCacheLogicalTargets

private ProxyCacheLogicalTargets proxyCacheLogicalTargets
Definition in CADI.Proxy.Proxy#logicalTargetList.


requestedWOIs

private ProxyRequestedWOIs requestedWOIs

log

private CADILog log
It is an object that will be used to log the server process


finish

private boolean finish
Indicates whether the thread has to finish.

See Also:
#finish()

cacheManagement

private ProxyCacheManagement cacheManagement

fetchTarget

private FetchTarget fetchTarget

httpClient

private HTTPClient httpClient

cacheDescriptorType

private int cacheDescriptorType

cacheDescriptorSubType

private int cacheDescriptorSubType

stopWatch

private StopWatch stopWatch

proxyMutex

private ProxyMutex proxyMutex

rlIndex

private int rlIndex
Constructor Detail

ProxyPrefetching

public ProxyPrefetching()
This class constructor is not allowed.


ProxyPrefetching

public ProxyPrefetching(java.lang.String threadName,
                        ProxyCacheLogicalTargets proxyCacheLogicalTargets,
                        ProxyRequestedWOIs requestedWOIs,
                        ProxyMutex proxyMutex,
                        CADILog log)
Parameters:
threadName -
proxyCacheLogicalTargets -
requestedWOIs -
proxyMutex -
log -
Method Detail

run

public void run()
Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread

calculateWOIsBoundingBoxZoom

private ViewWindowField calculateWOIsBoundingBoxZoom(java.util.ArrayList<ViewWindowField> woisList,
                                                     int index)
Parameters:
woisList -
Returns:

calculateWOIsBoundingBoxPan

private ViewWindowField calculateWOIsBoundingBoxPan(java.util.ArrayList<ViewWindowField> woisList)
Parameters:
woisList -
Returns:

calculateWOIsBoundingBox

private ViewWindowField calculateWOIsBoundingBox(java.util.ArrayList<ViewWindowField> woisList)
Parameters:
woisList -
Returns:


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)