public class FileOrderDelivery
extends java.lang.Object
Usage example:
construct
runResponseParameters
getResponseViewWindow
getQuality
runResponseData
getJPIPMessageData
getEORReasonCode
Modifier and Type | Field and Description |
---|---|
private ViewWindowField |
actualViewWindow |
private ServerJPEG2KCodestream |
codestream |
private int |
discardLevels |
private int |
EORReasonCode
Definition in
CADI.Server.LogicalTarget.ServerLogicalTargetManager#EORReasonCode . |
private int |
layers
Some internal attributes for passing values between diferents methods.
|
private JP2KServerLogicalTarget |
logicalTarget
Definition in
CADI.Server.LogicalTarget.ServerLogicalTargetManager#EORReasonCode . |
private long |
maximumResponseLength
Definition in
DataLimitField.len |
private int |
maxNumLayers
Definition in
CODParameters.numLayers |
private int |
progressionOrder
Definition in
CODParameters.progressionOrder |
private int |
quality
Definition in
CADI.Server.LogicalTarget.ServerLogicalTargetManager#quality . |
private java.util.ArrayList<java.lang.Long> |
relevantPrecincts
Is an array list which contains precinct identifiers.
|
private java.util.ArrayList<java.lang.Long>[][] |
relevantPrecinctsR_CP
Is a two-dimension array of array lists which contains precinct
identifiers.
|
private java.util.ArrayList<ResponseData> |
responseDataList |
private long |
responseLength
It is a temporary attribute to accumulate the response length which is
sending to the client.
|
private ViewWindowField |
responseViewWindow
Definition in
CADI.Server.LogicalTarget.ServerLogicalTargetManager#responseViewWindow . |
private ServerCacheModel |
serverCache
This attribute contains the cache data for the client.
|
private ServerJPEG2KTile |
tileObj |
Constructor and Description |
---|
FileOrderDelivery(JP2KServerLogicalTarget logicalTarget,
ServerCacheModel serverCache)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
getEORReasonCode()
Returns the
EORReasonCode attribute. |
int |
getQuality()
Returns the
quality attribute. |
java.util.ArrayList<ResponseData> |
getResponseData()
Returns the
#jpipMessageHeaders attribute. |
ViewWindowField |
getResponseViewWindow()
Returns the
responseViewWindow attribute. |
void |
list(java.io.PrintStream out)
Prints this File Order Delivery out to the specified output stream.
|
void |
runResponseData(java.util.ArrayList<ResponseData> responseDataList,
long maximumResponseLength) |
private void |
runResponseDataLayerPosition(java.util.ArrayList<java.lang.Long> relevantPrecincts) |
private void |
runResponseDataPositionLayer(java.util.ArrayList<java.lang.Long> relevantPrecincts) |
private void |
runResponseDataRLCP(java.util.ArrayList<java.lang.Long>[][] relevantPrecinctsR_CP) |
void |
runResponseParameters(ViewWindowField viewWindow)
Calculates the WOI which will be sent to the client using a layers-based
rate-distortion method (file is delivery in the same order that is is
saved).
|
void |
setDeliveryProgressionOrder(int progressionOrder)
Sets the
progressionOrder attribute. |
java.lang.String |
toString() |
private ViewWindowField responseViewWindow
CADI.Server.LogicalTarget.ServerLogicalTargetManager#responseViewWindow
.private int quality
CADI.Server.LogicalTarget.ServerLogicalTargetManager#quality
.private int EORReasonCode
CADI.Server.LogicalTarget.ServerLogicalTargetManager#EORReasonCode
.private JP2KServerLogicalTarget logicalTarget
CADI.Server.LogicalTarget.ServerLogicalTargetManager#EORReasonCode
.private ServerCacheModel serverCache
This reference is passed from the
private long maximumResponseLength
DataLimitField.len
private java.util.ArrayList<ResponseData> responseDataList
private ViewWindowField actualViewWindow
private long responseLength
private int discardLevels
private ServerJPEG2KCodestream codestream
private ServerJPEG2KTile tileObj
private int maxNumLayers
CODParameters.numLayers
private int progressionOrder
CODParameters.progressionOrder
private int layers
ViewWindowField
private java.util.ArrayList<java.lang.Long> relevantPrecincts
private java.util.ArrayList<java.lang.Long>[][] relevantPrecinctsR_CP
The first index of the array is the tile and the second one is the resolution level.
public FileOrderDelivery(JP2KServerLogicalTarget logicalTarget, ServerCacheModel serverCache)
logicalTarget
- definition in logicalTarget
.serverCache
- definition in serverCache
.public void setDeliveryProgressionOrder(int progressionOrder)
progressionOrder
attribute.progressionOrder
- definition in progressionOrder
.public void runResponseParameters(ViewWindowField viewWindow) throws java.lang.IllegalArgumentException, ErrorException
viewWindow
- the requested Window Of InterestErrorException
java.lang.IllegalArgumentException
public void runResponseData(java.util.ArrayList<ResponseData> responseDataList, long maximumResponseLength) throws ErrorException
jpipMessageHeaders
- definition in #jpipMessageHeaders
maximumResponseLength
- definition in maximumResponseLength
ErrorException
java.io.IOException
public int getEORReasonCode()
EORReasonCode
attribute.EORReasonCode
attribute.public ViewWindowField getResponseViewWindow()
responseViewWindow
attribute.responseViewWindow
attribute.public java.util.ArrayList<ResponseData> getResponseData()
#jpipMessageHeaders
attribute.#jpipMessageHeaders
attribute.public java.lang.String toString()
toString
in class java.lang.Object
public void list(java.io.PrintStream out)
out
- an output stream.private void runResponseDataLayerPosition(java.util.ArrayList<java.lang.Long> relevantPrecincts) throws ErrorException
ErrorException
private void runResponseDataPositionLayer(java.util.ArrayList<java.lang.Long> relevantPrecincts) throws ErrorException
ErrorException
private void runResponseDataRLCP(java.util.ArrayList<java.lang.Long>[][] relevantPrecinctsR_CP) throws ErrorException
ErrorException
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)