Interface IEnergyConsumingNetworkElement

All Superinterfaces:
Comparable<INetworkElement>, INetworkElement
All Known Implementing Classes:
ConsumingNetworkElementBase, DelayNetworkElement, MaterializerNetworkElement, PartNetworkElement, ProxyNetworkElement, TileNetworkElement, VariablestoreNetworkElement

public interface IEnergyConsumingNetworkElement extends INetworkElement
An energy consuming network element.
  • Method Details

    • getConsumptionRate

      int getConsumptionRate()
      Returns:
      The energy consumption rate of this part for the given state.
    • postUpdate

      void postUpdate(INetwork network, boolean updated)
      Called after the element was updated or not. If the update was not called, this can be because the network did not contain enough energy to let this element work.
      Parameters:
      network - The network.
      updated - If the INetworkElement.update(INetwork) was called.