|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object backend.SphereFileReader
public class SphereFileReader
SphereFileReader should be used to read in a sphere file of a given filename the file format is in SphereFileWriter if you desire to see it.
Constructor Summary | |
---|---|
SphereFileReader(java.lang.String filename,
java.awt.Component errorMsgFrame)
SphereFileReader default constructor |
Method Summary | |
---|---|
SphereCircleModel |
getCircle(int index)
getCircle will return the given circle requested by the user |
int |
getCircleCount()
getCircleCount will return the number of circles that have bene read in from file |
SphereIntrModel |
getIntr(int index)
getIntr returns the SphereLineIntrModel for the given index number which is between 0 and getIntrCount() |
int |
getIntrCount()
getIntrCount will return the amount of intersections that there are |
SphereLineModel |
getLine(int index)
getLine returns a line corresponding to the zero based index |
int |
getLineCount()
getLineCount returns the number of lines read in |
InformationNugget |
getNugget(int index)
getString returns a String cooresponding to the zero based index |
int |
getNuggetCount()
getStringCount returns the number of Strings we have read in |
int |
getParaTransCount()
getParaTransCount will return the number of SphereParaTransModels there were read in from the file |
SphereParaTransModel |
getParaTransModel(int index)
getParaTransModel will return the given SphereParaTransModel |
SpherePointModel |
getPoint(int index)
getPoint returns a point given a zero based index |
int |
getPointCount()
getPointCount returns the number of points read in |
SphereModel |
getSphereModel()
return the sphere model that we read in |
boolean |
isDataValid()
isDataValid should be called before doing anything with this file reader. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SphereFileReader(java.lang.String filename, java.awt.Component errorMsgFrame)
filename
- The name of the data file to readerrorMsgFrame
- The frame to display error messages inMethod Detail |
---|
public boolean isDataValid()
public int getPointCount()
public SpherePointModel getPoint(int index)
index
- of the point to return
public int getLineCount()
public SphereLineModel getLine(int index)
index
- of the line to return
public int getNuggetCount()
public InformationNugget getNugget(int index)
index
- of the String to return
public SphereModel getSphereModel()
public int getIntrCount()
public SphereIntrModel getIntr(int index)
index
- the SphereLineIntrModel to return
public SphereParaTransModel getParaTransModel(int index)
index
- is the index of the SphereParaTransModel to retreive
public int getParaTransCount()
public int getCircleCount()
public SphereCircleModel getCircle(int index)
index
- is the index of the circle to return
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |