Package com.rcll.refbox
Class RefboxClient
- java.lang.Object
-
- com.rcll.refbox.RefboxClient
-
public class RefboxClient extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description RefboxClient(@NonNull RefboxConnectionConfig connectionConfig, @NonNull TeamConfig teamConfig, @NonNull RefboxHandler privateHandler, @NonNull RefboxHandler publicHandler, int sendIntervalInMs)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<MachineName>getAllMachines()java.util.List<Order>getAllNoDsPreparedOrders()java.util.List<Order>getAllOrders()java.util.List<Ring>getAllRings()java.lang.IntegergetCurrentPoint()GamePhasegetGamePhase()GameStategetGameState()java.lang.IntegergetKnownMachinesCount()java.lang.LonggetLatestGameTimeInNanoSeconds()java.lang.LonggetLatestGameTimeInSeconds()java.util.Map<MachineName,MachinePosition>getMachineZones()OrdergetOrderById(int orderId)java.util.Set<java.lang.Integer>getPreparedOrders()RinggetRingByColor(RingColor ringColor)java.util.List<Ring>getRingsForMachine(Machine machine)java.util.Optional<MachineState>getStateForMachine(Machine machine)java.util.Optional<TeamColor>getTeamColor()booleanisCyan()booleanisMagenta()booleanisReadyForProduction()voidsendBeaconSignal(int robotNumber, java.lang.String robotName, float x, float y, float yaw)voidsendPrepareBS(MachineSide side, Base base_color)voidsendPrepareCS(Machine machine, CapStationInstruction operation)voidsendPrepareDS(int orderId)voidsendPrepareRS(Machine machine, RingColor ringColor)voidsendPrepareSS(Machine machine, int shelf, int slot)voidsendReportMachine(MachineName machineName, ZoneName zone, int rotation)voidsendResetMachine(Machine machine)voidstartServer()voidupdateMachineStates(org.robocup_logistics.llsf_msgs.MachineInfoProtos.MachineInfo info)
-
-
-
Constructor Detail
-
RefboxClient
public RefboxClient(@NonNull @NonNull RefboxConnectionConfig connectionConfig, @NonNull @NonNull TeamConfig teamConfig, @NonNull @NonNull RefboxHandler privateHandler, @NonNull @NonNull RefboxHandler publicHandler, int sendIntervalInMs)
-
-
Method Detail
-
startServer
public void startServer()
-
sendBeaconSignal
public void sendBeaconSignal(int robotNumber, java.lang.String robotName, float x, float y, float yaw)
-
sendReportMachine
public void sendReportMachine(MachineName machineName, ZoneName zone, int rotation)
-
sendResetMachine
public void sendResetMachine(Machine machine)
-
sendPrepareBS
public void sendPrepareBS(MachineSide side, Base base_color)
-
sendPrepareDS
public void sendPrepareDS(int orderId)
-
sendPrepareCS
public void sendPrepareCS(Machine machine, CapStationInstruction operation)
-
sendPrepareSS
public void sendPrepareSS(Machine machine, int shelf, int slot)
-
getStateForMachine
public java.util.Optional<MachineState> getStateForMachine(Machine machine)
-
updateMachineStates
public void updateMachineStates(org.robocup_logistics.llsf_msgs.MachineInfoProtos.MachineInfo info)
-
getOrderById
public Order getOrderById(int orderId)
-
getAllOrders
public java.util.List<Order> getAllOrders()
-
getAllNoDsPreparedOrders
public java.util.List<Order> getAllNoDsPreparedOrders()
-
getAllRings
public java.util.List<Ring> getAllRings()
-
getTeamColor
public java.util.Optional<TeamColor> getTeamColor()
-
isMagenta
public boolean isMagenta()
-
isCyan
public boolean isCyan()
-
getLatestGameTimeInSeconds
public java.lang.Long getLatestGameTimeInSeconds()
-
getLatestGameTimeInNanoSeconds
public java.lang.Long getLatestGameTimeInNanoSeconds()
-
getGamePhase
public GamePhase getGamePhase()
-
getGameState
public GameState getGameState()
-
getCurrentPoint
public java.lang.Integer getCurrentPoint()
-
getKnownMachinesCount
public java.lang.Integer getKnownMachinesCount()
-
getPreparedOrders
public java.util.Set<java.lang.Integer> getPreparedOrders()
-
getMachineZones
public java.util.Map<MachineName,MachinePosition> getMachineZones()
-
getAllMachines
public java.util.List<MachineName> getAllMachines()
-
isReadyForProduction
public boolean isReadyForProduction()
-
-