MCPcopy Create free account
hub / github.com/akeranen/the-one / init

Method init

input/ExternalEventsQueue.java:77–89  ·  view source on GitHub ↗
(String eeFilePath)

Source from the content-addressed store, hash-verified

75 }
76
77 private void init(String eeFilePath) {
78 this.eventsFile = new File(eeFilePath);
79
80 if (BinaryEventsReader.isBinaryEeFile(eventsFile)) {
81 this.reader = new BinaryEventsReader(eventsFile);
82 }
83 else {
84 this.reader = new StandardEventsReader(eventsFile);
85 }
86
87 this.queue = readEvents(nrofPreload);
88 this.nextEventIndex = 0;
89 }
90
91 /**
92 * Returns next event's time or Double.MAX_VALUE if there are no

Callers 1

ExternalEventsQueueMethod · 0.95

Calls 2

isBinaryEeFileMethod · 0.95
readEventsMethod · 0.95

Tested by

no test coverage detected