Package edu.tufts.hrilab.supermarket
Class SupermarketObservation
java.lang.Object
edu.tufts.hrilab.supermarket.SupermarketObservation
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassclassclassclassclassclassclassclassclass -
Field Summary
FieldsModifier and TypeFieldDescriptionintint -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanatCartReturn(int playerIndex) booleanstatic booleandefaultCanInteract(SupermarketObservation.InteractiveObject obj, SupermarketObservation.Player player) static booleandefaultCanInteract(SupermarketObservation.InteractiveObject obj, SupermarketObservation.Player player, double range) booleanbooleaninthashCode()booleaninAisle(int playerIndex, int aisleIndex) booleaninAisleHub(int playerIndex) booleaninEntrance(int playerindex) booleaninRearAisleHub(int playerIndex) booleaninStore(SupermarketObservation.Player player) booleanbooleannorthOfAisle(int playerIndex, int aisleIndex) booleannorthOfCartReturn(int playerIndex) booleanstatic booleanoverlap(double x1, double y1, double width1, double height1, double x2, double y2, double width2, double height2) doubleproximity(int index1, int index2) booleanbooleansouthOfAisle(int playerIndex, int aisleIndex) booleansouthOfCartReturn(int playerIndex) booleanboolean
-
Field Details
-
players
-
carts
-
baskets
-
shelves
-
counters
-
registers
-
cartReturns
-
basketReturns
-
interactive_stage
public int interactive_stage -
total_stages
public int total_stages
-
-
Constructor Details
-
SupermarketObservation
public SupermarketObservation()
-
-
Method Details
-
overlap
public static boolean overlap(double x1, double y1, double width1, double height1, double x2, double y2, double width2, double height2) -
equals
-
hashCode
public int hashCode() -
defaultCanInteract
public static boolean defaultCanInteract(SupermarketObservation.InteractiveObject obj, SupermarketObservation.Player player, double range) -
defaultCanInteract
public static boolean defaultCanInteract(SupermarketObservation.InteractiveObject obj, SupermarketObservation.Player player) -
northOfCartReturn
public boolean northOfCartReturn(int playerIndex) -
southOfCartReturn
public boolean southOfCartReturn(int playerIndex) -
atCartReturn
public boolean atCartReturn(int playerIndex) -
atShelf
public boolean atShelf(SupermarketObservation.Player player, SupermarketObservation.InteractiveObject shelf) -
inEntrance
public boolean inEntrance(int playerindex) -
inAisleHub
public boolean inAisleHub(int playerIndex) -
inRearAisleHub
public boolean inRearAisleHub(int playerIndex) -
inAisle
public boolean inAisle(int playerIndex, int aisleIndex) -
northOfExitRow
-
southOfExitRow
-
inStore
-
southOfAisle
public boolean southOfAisle(int playerIndex, int aisleIndex) -
northOfAisle
public boolean northOfAisle(int playerIndex, int aisleIndex) -
westOf
public boolean westOf(SupermarketObservation.Player player, SupermarketObservation.InteractiveObject obj) -
eastOf
public boolean eastOf(SupermarketObservation.Player player, SupermarketObservation.InteractiveObject obj) -
northOf
public boolean northOf(SupermarketObservation.Player player, SupermarketObservation.InteractiveObject obj) -
southOf
public boolean southOf(SupermarketObservation.Player player, SupermarketObservation.InteractiveObject obj) -
proximity
public double proximity(int index1, int index2)
-