}
@Override
public IEnergyNetwork merge(IEnergyNetwork network)
{
IEnergyNetwork newNetwork = super.merge(network);
if (newNetwork != null)
{
long newBuffer = getBuffer() + ((EnergyNetwork) network).getBuffer();
newNetwork.setBuffer(newBuffer);
return newNetwork;
}
return null;
}