|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--InstanceProblem
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 |
protected int dataSet
protected int grid
protected int track
protected int Nr
protected static Map mRequest
protected int Ns
protected static List lStrip
protected static Map mStrip
protected static List lImage
Constructor Detail |
public InstanceProblem(String fileName)
fileName
- the name of the file containing the instance dataMethod Detail |
protected void initListsAndMaps()
public void readInstance(String fileName)
protected Request readRequest(BufferedReader br, String fileName)
protected Strip readStrip(BufferedReader br, String fileName)
protected GeoPoint readGeoPoint(BufferedReader br, String fileName)
protected void constructListOfStripsPerRequest()
lStrip
,
mRequest
,
Strip.associatedRequest
public String toString()
toString
in class Object
protected void lImageadd(Strip strip, int k)
strip
- strip the two possible strip acquisitions of which will be added to lImagek
- index of the first strip acquisition in lImagelImage
,
Image
,
Strip
protected void constructListOfImages()
lImage
,
lImageadd(Strip, int)
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |