public interface IMjReceiver extends IMjConnector
Modifier and Type | Method and Description |
---|---|
default boolean |
canReceive()
Checks to see if
receivePower(long, boolean) *might* accept any power right now, ignoring the amount of
power contained right now (if any). |
long |
getPowerRequested() |
long |
receivePower(long microJoules,
boolean simulate)
Receives power.
|
canConnect
long getPowerRequested()
long receivePower(long microJoules, boolean simulate)
MjBattery
for later usage.
MjBattery
is full).
canReceive()
before calling this - implementors should check
all of the conditions in canReceive()
before accepting power.microJoules
- The number of micro joules to add.simulate
- If true then just pretend you received power- don't actually change any of your internal state.default boolean canReceive()
receivePower(long, boolean)
*might* accept any power right now, ignoring the amount of
power contained right now (if any).IMjReceiver
can receive power right now.