Skip to content

Commit

Permalink
More modular support for protocol drivers.
Browse files Browse the repository at this point in the history
  • Loading branch information
SciFiDryer committed Jun 7, 2021
1 parent 08efd3b commit ace47b6
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion nbproject/genfiles.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ build.xml.script.CRC32=da12c040
build.xml.stylesheet.CRC32=[email protected]
# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
nbproject/build-impl.xml.data.CRC32=315b7284
nbproject/build-impl.xml.data.CRC32=22aebc0c
nbproject/build-impl.xml.script.CRC32=9812bdf0
nbproject/build-impl.xml.stylesheet.CRC32=[email protected]
1 change: 1 addition & 0 deletions nbproject/project.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,6 @@
<root id="test.src.dir"/>
</test-roots>
</data>
<references xmlns="http://www.netbeans.org/ns/ant-project-references/1"/>
</configuration>
</project>
5 changes: 4 additions & 1 deletion src/protocolwhisperer/drivers/ProtocolDriver.java
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,8 @@ public void shutdown()
}
public abstract Class getProtocolHandlerClass();
public abstract Class getProtocolRecordClass();
public abstract void storeProtocolRecord(ProtocolRecord currentRecord);
public void storeProtocolRecord(ProtocolRecord currentRecord)
{
recordList.add(currentRecord);
}
}
2 changes: 1 addition & 1 deletion src/protocolwhisperer/drivers/TagRecord.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
*/
public abstract class TagRecord {
public String tag = "";
double value = 0;
protected double value = 0;
public boolean configured = false;
public abstract void setValue(double value);
public abstract double getValue();
Expand Down

0 comments on commit ace47b6

Please sign in to comment.