mirror of
https://github.com/hneemann/Digital.git
synced 2025-09-14 15:26:52 -04:00
fixed a library issue in the UnitTester
This commit is contained in:
parent
3ed5dd8f8c
commit
468435a68e
@ -30,7 +30,7 @@ public class UnitTester {
|
|||||||
private boolean initCalled = false;
|
private boolean initCalled = false;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates a new instanve
|
* Creates a new instance
|
||||||
*
|
*
|
||||||
* @param file the file to load
|
* @param file the file to load
|
||||||
* @throws IOException IOException
|
* @throws IOException IOException
|
||||||
@ -40,7 +40,7 @@ public class UnitTester {
|
|||||||
*/
|
*/
|
||||||
public UnitTester(File file) throws IOException, ElementNotFoundException, PinException, NodeException {
|
public UnitTester(File file) throws IOException, ElementNotFoundException, PinException, NodeException {
|
||||||
ElementLibrary library = new ElementLibrary();
|
ElementLibrary library = new ElementLibrary();
|
||||||
library.setRootFilePath(file.getParentFile());
|
library.setRootFilePath(file.getAbsoluteFile().getParentFile());
|
||||||
initLibrary(library);
|
initLibrary(library);
|
||||||
ShapeFactory shapeFactory = new ShapeFactory(library);
|
ShapeFactory shapeFactory = new ShapeFactory(library);
|
||||||
Circuit circuit = Circuit.loadCircuit(file, shapeFactory);
|
Circuit circuit = Circuit.loadCircuit(file, shapeFactory);
|
||||||
@ -56,7 +56,7 @@ public class UnitTester {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Writed data to a memory component
|
* Write data to a memory component
|
||||||
*
|
*
|
||||||
* @param filter the filter to identify the memory component
|
* @param filter the filter to identify the memory component
|
||||||
* @param data the data to write
|
* @param data the data to write
|
||||||
@ -69,7 +69,7 @@ public class UnitTester {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Reruts the memory idetified by the filter
|
* Returns the memory identified by the filter
|
||||||
*
|
*
|
||||||
* @param filter the filter to identify the memory component
|
* @param filter the filter to identify the memory component
|
||||||
* @return the memory component
|
* @return the memory component
|
||||||
|
Loading…
x
Reference in New Issue
Block a user