MCPcopy Create free account
hub / github.com/atas76/openengine / getEntity

Method getEntity

src/main/java/org/fgn/schema/StateContext.java:18–25  ·  view source on GitHub ↗
(String key)

Source from the content-addressed store, hash-verified

16 }
17
18 public static BaseObject getEntity(String key) throws SchemaException {
19
20 if (entities.get(key) == null) {
21 throw new SchemaException("Object '" + key + "' not supported by ontology");
22 }
23
24 return entities.get(key);
25 }
26
27 public static BaseObject getDefault() {
28 return entities.get("FREE");

Callers 12

testActionOutcomeMethod · 0.95
testShotOffTargetMethod · 0.95
testGoalAttemptMethod · 0.95
testUnknownStatesMethod · 0.95
parseStateInMethod · 0.95
parseParameterMethod · 0.95
defineStateContextMethod · 0.95

Calls

no outgoing calls

Tested by 9

testActionOutcomeMethod · 0.76
testShotOffTargetMethod · 0.76
testGoalAttemptMethod · 0.76
testUnknownStatesMethod · 0.76