Class InstanceProblem

java.lang.Object
  |
  +--InstanceProblem

public class InstanceProblem
extends Object


Field Summary
protected  int dataSet
          data set number
protected  int grid
          grid number
protected static List lImage
          list of candidate strip acquisitions
protected static List lStrip
          list of the strips
protected static Map mRequest
          map of the requests indexed by the request index
protected static Map mStrip
          map of the strips indexed by the strip index
protected  int Nr
          number of requests
protected  int Ns
          number of strips
protected  int track
          track number
 
Constructor Summary
InstanceProblem(String fileName)
          Constructor that reads the data from the file fileName
 
Method Summary
protected  void constructListOfImages()
          Initialization method of the list lImage.
It uses the list of strips lStrip and creates lImage in the same order.
protected  void constructListOfStripsPerRequest()
          Method that assigns to each request the associated list of strips
protected  void initListsAndMaps()
          initialization of the two lists and two maps of the class
protected  void lImageadd(Strip strip, int k)
          Method that adds the two possible strip acquisitions associated with a strip to the list lImage at the index k.
protected  GeoPoint readGeoPoint(BufferedReader br, String fileName)
          Method that reads a geographic point :
If the reading is successful, the GeoPoint object is initialized with the read data.
 void readInstance(String fileName)
          Method that reads the instance file :
If the reading is successful, the InstanceProblem object is initialized with the read data.
protected  Request readRequest(BufferedReader br, String fileName)
          Method that reads the information associated with a request :
If the reading is successful, the Request object is initialized with the read data .
protected  Strip readStrip(BufferedReader br, String fileName)
          Method that reads a strip :
If the reading is successful, the Strip object is initialized with the read data .
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

dataSet

protected int dataSet
data set number

grid

protected int grid
grid number

track

protected int track
track number

Nr

protected int Nr
number of requests

mRequest

protected static Map mRequest
map of the requests indexed by the request index

Ns

protected int Ns
number of strips

lStrip

protected static List lStrip
list of the strips

mStrip

protected static Map mStrip
map of the strips indexed by the strip index

lImage

protected static List lImage
list of candidate strip acquisitions
Constructor Detail

InstanceProblem

public InstanceProblem(String fileName)
Constructor that reads the data from the file fileName
Parameters:
fileName - the name of the file containing the instance data
Method Detail

initListsAndMaps

protected void initListsAndMaps()
initialization of the two lists and two maps of the class

readInstance

public void readInstance(String fileName)
Method that reads the instance file :
If the reading is successful, the InstanceProblem object is initialized with the read data.
Otherwise, the program stops immediately with an error message.

readRequest

protected Request readRequest(BufferedReader br,
                              String fileName)
Method that reads the information associated with a request :
If the reading is successful, the Request object is initialized with the read data .
Otherwise, the program stops immediately with an error message.

readStrip

protected Strip readStrip(BufferedReader br,
                          String fileName)
Method that reads a strip :
If the reading is successful, the Strip object is initialized with the read data .
Otherwise, the program stops immediately with an error message.

readGeoPoint

protected GeoPoint readGeoPoint(BufferedReader br,
                                String fileName)
Method that reads a geographic point :
If the reading is successful, the GeoPoint object is initialized with the read data.
Otherwise, the program stops immediately with an error message.

constructListOfStripsPerRequest

protected void constructListOfStripsPerRequest()
Method that assigns to each request the associated list of strips
See Also:
lStrip, mRequest, Strip.associatedRequest

toString

public String toString()
Overrides:
toString in class Object

lImageadd

protected void lImageadd(Strip strip,
                         int k)
Method that adds the two possible strip acquisitions associated with a strip to the list lImage at the index k.
Parameters:
strip - strip the two possible strip acquisitions of which will be added to lImage
k - index of the first strip acquisition in lImage
See Also:
lImage, Image, Strip

constructListOfImages

protected void constructListOfImages()
Initialization method of the list lImage.
It uses the list of strips lStrip and creates lImage in the same order.
See Also:
lImage, lImageadd(Strip, int)