| Revision 2,
960 bytes
checked in by jdalbey, 10 years ago
(diff) |
|
Initial Import of project files
|
| Rev | Line | |
|---|
| 1 | package tmcsim.paramicscommunicator; |
|---|
| 2 | |
|---|
| 3 | /** |
|---|
| 4 | * FileIOUpdate is an update class used to record I/O operations |
|---|
| 5 | * performed by FileReaders and FileWriters registered with the |
|---|
| 6 | * ParamicsCommunicator. |
|---|
| 7 | * |
|---|
| 8 | * @author Matthew Cechini |
|---|
| 9 | * @version |
|---|
| 10 | */ |
|---|
| 11 | public class FileIOUpdate { |
|---|
| 12 | |
|---|
| 13 | /** |
|---|
| 14 | * Enumeration of I/O action types. |
|---|
| 15 | * @author Matthew Cechini |
|---|
| 16 | */ |
|---|
| 17 | public static enum IO_TYPE {READ, WRITE}; |
|---|
| 18 | |
|---|
| 19 | /** Type of I/O performed. */ |
|---|
| 20 | public IO_TYPE ioType; |
|---|
| 21 | |
|---|
| 22 | /** ID of FileReader or FileWriter. */ |
|---|
| 23 | public String ioID; |
|---|
| 24 | |
|---|
| 25 | /** Number of bytes written to or read from the target file. */ |
|---|
| 26 | public Long ioBytes; |
|---|
| 27 | |
|---|
| 28 | /** |
|---|
| 29 | * Constructor. |
|---|
| 30 | * |
|---|
| 31 | * @param type I/O type. |
|---|
| 32 | * @param id I/O object id. |
|---|
| 33 | * @param bytes Number of bytes for I/O action. |
|---|
| 34 | */ |
|---|
| 35 | public FileIOUpdate(IO_TYPE type, String id, Long bytes) { |
|---|
| 36 | ioType = type; |
|---|
| 37 | ioID = id; |
|---|
| 38 | ioBytes = bytes; |
|---|
| 39 | } |
|---|
| 40 | } |
|---|
Note: See
TracBrowser
for help on using the repository browser.