CADI.Common.Cache
Class CacheDescriptor

java.lang.Object
  extended by CADI.Common.Cache.CacheDescriptor
All Implemented Interfaces:
ClassIdentifiers

public class CacheDescriptor
extends java.lang.Object
implements ClassIdentifiers

Version:
beta 0.2
Author:
Group on Interactive Coding of Images (GICI)

Field Summary
 boolean aditive
           
 int classIdentifier
          Indicates the data-bin class.
 int[] componentRange
           
 boolean explicitForm
          Indicates whether explicit form or implicit form is used.
 long InClassIdentifier
          Definition in JPIPMessageHeader.inClassIdentifier Only is used with the form.
 int numberOfBytes
          Indicates the number of bytes.
 int numberOfLayers
          Indicates the number of layers (packets) Default value for both index are -1.
 int[] precinctRange
           
 int[] resolutionLevelRange
           
 int[] tileRange
          Indicates the precinct when the implicit form is used.
 
Fields inherited from interface CADI.Common.Network.JPIP.ClassIdentifiers
EXTENDED_PRECINCT, EXTENDED_TILE, MAIN_HEADER, METADATA, PRECINCT, TILE, TILE_HEADER
 
Constructor Summary
CacheDescriptor()
          Constructor.
 
Method Summary
 void list(java.io.PrintStream out)
          Prints this Cache Descriptor fields out to the specified output stream.
 void reset()
          Sets the attritutes to its initial values.
 java.lang.String toString()
          For debugging purposes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

classIdentifier

public int classIdentifier
Indicates the data-bin class.

Allowed values, see ClassIdentifiers. OBS: Cambiar la clase DataBinClass para que solo tenga estes valores, y entonces, los valores EXTENDED activar una opcion en las correspondientes funciones donde se indique que es un valor EXTENDED.


explicitForm

public boolean explicitForm
Indicates whether explicit form or implicit form is used.

Default value: true


aditive

public boolean aditive

InClassIdentifier

public long InClassIdentifier
Definition in JPIPMessageHeader.inClassIdentifier

Only is used with the form. If the value is -1, then indicates a wildcard.


tileRange

public int[] tileRange
Indicates the precinct when the implicit form is used.


componentRange

public int[] componentRange

resolutionLevelRange

public int[] resolutionLevelRange

precinctRange

public int[] precinctRange

numberOfLayers

public int numberOfLayers
Indicates the number of layers (packets)

Default value for both index are -1. This value indicates that the descriptor is specified by means of the index range. And if both, indexRange and numberOfLayers are -1, then the descriptor is a wildcard.


numberOfBytes

public int numberOfBytes
Indicates the number of bytes.

Default value is -1.

Constructor Detail

CacheDescriptor

public CacheDescriptor()
Constructor.

Method Detail

reset

public void reset()
Sets the attritutes to its initial values.


toString

public java.lang.String toString()
For debugging purposes.

Overrides:
toString in class java.lang.Object

list

public void list(java.io.PrintStream out)
Prints this Cache Descriptor 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)