|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectplatypus.GID
public class GID
GID is the Global Input-file Data class. It contains properties relating to the input file. Implemented using the Singleton pattern because it is a one-time global item.
| Field Summary | |
|---|---|
private ReadLine |
currLine
|
private Infile |
infile
|
private static GID |
thisInstance
fields and functions needed for instantiation of singleton |
private Tokens |
tokens
|
| Constructor Summary | |
|---|---|
private |
GID()
|
| Method Summary | |
|---|---|
void |
FTOsetCurr(ReadLine newRL)
This function is FTO because and not used in production code because GID only has the one currLine. |
ReadLine |
getCurrLine()
Returns the current line |
Infile |
getInfile()
|
static GID |
getInstance()
The function used by singleton pattern to return handle to this class |
Tokens |
getTokens()
|
void |
initialize()
mostly used in testing to put GID back into a known state. |
void |
setInfile(Infile newInfile)
|
void |
setTokens(Tokens newTokens)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private Infile infile
private ReadLine currLine
private Tokens tokens
private static final GID thisInstance
| Constructor Detail |
|---|
private GID()
| Method Detail |
|---|
public static GID getInstance()
public void initialize()
public ReadLine getCurrLine()
public Infile getInfile()
public void setInfile(Infile newInfile)
public Tokens getTokens()
public void setTokens(Tokens newTokens)
public void FTOsetCurr(ReadLine newRL)
newRL - the new ReadLine to replace currLine
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||