private void updateEvseStatus ( ChargingStation chargingStation , String componentId , ComponentStatus status ) { for ( Evse evse : chargingStation . getEvses ( ) ) { if ( evse . getEvseId ( ) . equals ( componentId ) ) { evse . setStatus ( status ) ; } } }
Updates the status of a Evse in the charging station object if the evse id matches the component id .