Skip to content
Closed
2 changes: 1 addition & 1 deletion _alp/Agents/ConnectionOwner/Code/Functions.xml
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@
<ShowLabel>true</ShowLabel>
<Body xmlns:al="http://anylogic.com"/>
</Function>
<Function AccessType="default" StaticFunction="false">
<Function AccessType="public" StaticFunction="false">
<ReturnModificator>VOID</ReturnModificator>
<ReturnType>double</ReturnType>
<Id>1716897235822</Id>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* J_BatteryManagementSelfConsumption1
* J_BatteryManagementSelfConsumptionGridNode
*/

import com.fasterxml.jackson.annotation.JsonAutoDetect;
Expand Down
13 changes: 12 additions & 1 deletion _alp/Classes/Class.J_EAProfile.java
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,18 @@ public double getProfileUnitScaler_fr() {
public double getProfileScaling_fr() {
return this.profileScaling_fr;
}


public void setProfilePointer(J_ProfilePointer profile) {
if (profile == null) {
throw new RuntimeException("Cannot set J_EAProfile profilePointer to null!");
}
this.profilePointer = profile;
}

public void setProfileScaling_fr( double scaling_fr ) {
this.profileScaling_fr = scaling_fr;
}

public double getPeakConsumptionPower_kW() {
if (this.signScaler_r < 0) {
return 0.0;
Expand Down