Package edu.tufts.hrilab.supermarket
Class SupermarketObservation
java.lang.Object
edu.tufts.hrilab.supermarket.SupermarketObservation
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclass
class
class
class
class
class
class
class
class
-
Field Summary
FieldsModifier and TypeFieldDescriptionint
int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
atCartReturn
(int playerIndex) boolean
static boolean
defaultCanInteract
(SupermarketObservation.InteractiveObject obj, SupermarketObservation.Player player) static boolean
defaultCanInteract
(SupermarketObservation.InteractiveObject obj, SupermarketObservation.Player player, double range) boolean
boolean
int
hashCode()
boolean
inAisle
(int playerIndex, int aisleIndex) boolean
inAisleHub
(int playerIndex) boolean
inEntrance
(int playerindex) boolean
inRearAisleHub
(int playerIndex) boolean
inStore
(SupermarketObservation.Player player) boolean
boolean
northOfAisle
(int playerIndex, int aisleIndex) boolean
northOfCartReturn
(int playerIndex) boolean
static boolean
overlap
(double x1, double y1, double width1, double height1, double x2, double y2, double width2, double height2) double
proximity
(int index1, int index2) boolean
boolean
southOfAisle
(int playerIndex, int aisleIndex) boolean
southOfCartReturn
(int playerIndex) boolean
boolean
-
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)
-