| Revision 2,
1.1 KB
checked in by jdalbey, 10 years ago
(diff) |
|
Initial Import of project files
|
| Rev | Line | |
|---|
| 1 | package tmcsim.cadsimulator.paramicscontrol; |
|---|
| 2 | |
|---|
| 3 | import java.util.logging.Logger; |
|---|
| 4 | |
|---|
| 5 | import org.w3c.dom.Node; |
|---|
| 6 | |
|---|
| 7 | /** |
|---|
| 8 | * ParamicsReader is an abstract class to define objects that may |
|---|
| 9 | * read data from the Paramics Communicator. Each ParamicsWriter |
|---|
| 10 | * is identified by a unique id. The reader is assigned a target file |
|---|
| 11 | * that will be read from and the duration (in seconds) between reads. |
|---|
| 12 | * All implementing Readers must implement the receive() method to |
|---|
| 13 | * parse the XML data that is received from the ParamicsCommunicator. |
|---|
| 14 | * |
|---|
| 15 | * @author Matthew Cechini |
|---|
| 16 | * @version |
|---|
| 17 | */ |
|---|
| 18 | public abstract class ParamicsReader { |
|---|
| 19 | |
|---|
| 20 | /** Error Logger */ |
|---|
| 21 | protected static Logger paramLogger = Logger.getLogger("tmcsim.cadsimulator.paramicscontrol"); |
|---|
| 22 | |
|---|
| 23 | /** Unique identifier for the reader. */ |
|---|
| 24 | public String readerID = null; |
|---|
| 25 | |
|---|
| 26 | /** Interval (in seconds) between reads. */ |
|---|
| 27 | public String interval = null; |
|---|
| 28 | |
|---|
| 29 | /** Target file being read by the ParamicsCommunicator. */ |
|---|
| 30 | public String targetFile = null; |
|---|
| 31 | |
|---|
| 32 | /** Abstract method to receive a XML Node object containing message data.*/ |
|---|
| 33 | public abstract void receive(Node rxMessage); |
|---|
| 34 | } |
|---|
Note: See
TracBrowser
for help on using the repository browser.