Skip to content

Commit 04bef2c

Browse files
committed
Exposed BWEM through BWTA
1 parent 9e971a2 commit 04bef2c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/main/java/bwta/BWTA.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,14 @@ public class BWTA {
2222
private static List<Chokepoint> chokepoints;
2323
private static List<BaseLocation> baseLocations;
2424

25+
/**
26+
* Exposes the BWEM instance.
27+
* You might want this even if using the BWTA interface: for example, if using JBWEB, which requires access to BWEM.
28+
*/
29+
public static BWEM getBWEM() {
30+
return bwem;
31+
}
32+
2533
/**
2634
* Extension to traditional BWTA interface for JBWAPI
2735
* Exposes BWEM's setFailOnError(boolean) method for aggressively asserting errors.

0 commit comments

Comments
 (0)