Package inputOutput
Class CSVFileReader
java.lang.Object
inputOutput.AbstractTrackingDataSource
inputOutput.CSVFileReader
This class reads in a 'CSV-file containing a variation of tools and
coordinates of their position in a room. It files them, so the different
variable can be allocated to each single tool
-
Field Summary
Fields inherited from class inputOutput.AbstractTrackingDataSource
tempToolList
-
Constructor Summary
ConstructorDescriptionCSVFileReader
(Reader reader) Constructs a CSVFileReader from a Reader object.CSVFileReader
(String path) Constructs a CSVFileReader by reading a file from the filesystem. -
Method Summary
Modifier and TypeMethodDescriptionvoid
static int
boolean
void
setRepeatMode
(boolean repeatMode) void
TODO interrupt update loop without closing app completelyupdate()
this returns an ArrayList containing as many tools as are listed in the CSV-file: when the CSV-file contains two tools then the method returns an ArrayList containing the objects of two toolsMethods inherited from class inputOutput.AbstractTrackingDataSource
getLastToolList
-
Constructor Details
-
CSVFileReader
Constructs a CSVFileReader from a Reader object.- Parameters:
reader
- The reader to use.- Throws:
IOException
-
CSVFileReader
Constructs a CSVFileReader by reading a file from the filesystem.- Parameters:
path
- The path to read.- Throws:
IOException
- If the file does not exist.
-
-
Method Details
-
getExceptionNumber
public static int getExceptionNumber() -
isRepeatModeOn
public boolean isRepeatModeOn() -
setRepeatMode
public void setRepeatMode(boolean repeatMode) -
getToolNames
-
update
this returns an ArrayList containing as many tools as are listed in the CSV-file: when the CSV-file contains two tools then the method returns an ArrayList containing the objects of two tools- Specified by:
update
in classAbstractTrackingDataSource
- Returns:
- ArrayList of tools
-
closeConnection
public void closeConnection()- Specified by:
closeConnection
in classAbstractTrackingDataSource
-
stopUpdate
public void stopUpdate()TODO interrupt update loop without closing app completely
-