Package edu.tufts.hrilab.polycraft.msg
Class Utilities
java.lang.Object
edu.tufts.hrilab.polycraft.msg.Utilities
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongenerateAdditionalObjectAssertions
(Map<String, Integer> worldTypes) Generate additional assertions based on world object counts (constant, subtype, fluent_equals(world(obj), count), etc)generateEntrywayAssertions
(Set<Predicate> mapAssertions) Generate entryway(x,y) assertions for navigation between rooms.static String
getActorType
(Entities.Entity entity) static String
getEntityName
(Entities.Entity entity) Create the entity name, using item field if it exists, and name + id if it doesn't.static boolean
queryBeliefSupport
(Predicate query) Local wrapper around querySupport call to Belief to handle try-catch to make usage in conditionals less ugly.
-
Constructor Details
-
Utilities
public Utilities()
-
-
Method Details
-
generateEntrywayAssertions
Generate entryway(x,y) assertions for navigation between rooms.- Parameters:
mapAssertions
-- Returns:
-
queryBeliefSupport
Local wrapper around querySupport call to Belief to handle try-catch to make usage in conditionals less ugly.- Parameters:
query
-- Returns:
-
generateAdditionalObjectAssertions
Generate additional assertions based on world object counts (constant, subtype, fluent_equals(world(obj), count), etc)- Parameters:
worldTypes
-- Returns:
-
getEntityName
Create the entity name, using item field if it exists, and name + id if it doesn't.- Parameters:
entity
-- Returns:
-
getActorType
-