Skip to content

Commit

Permalink
2 probes: sum of total energy of the foragers
Browse files Browse the repository at this point in the history
  • Loading branch information
pierbo committed Sep 9, 2024
1 parent 3b3a931 commit db9c845
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/ECEC-Model/ECECModel.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -250,3 +250,17 @@ ECECModel >> totalAmountOfBiomass [
<probeNamed: 'Total amount of biomass' color: '00b44c'>
^ self theVegetationUnits sum: [ :each | each biomass ]
]

{ #category : 'probes' }
ECECModel >> totalEnergyOfRestrained [

<probeNamed: 'Total energy of restrained foragers' color: 'CCFFFF'>
^ self theRestrainedForagers sum: [ :each | each energy ]
]

{ #category : 'probes' }
ECECModel >> totalEnergyOfUnrestrained [

<probeNamed: 'Total energy of unestrained foragers' color: 'FF00FF'>
^ self theUnrestrainedForagers sum: [ :each | each energy ]
]

0 comments on commit db9c845

Please sign in to comment.