From 72661a265b85ac3ab81acecf2e9dd0acfbcff84e Mon Sep 17 00:00:00 2001 From: Oleksandr Zaitsev Date: Sat, 31 Aug 2024 11:02:35 +0200 Subject: [PATCH] Updated the ECEC model to use the new PoV methods --- src/ECEC-Model/ECECModel.class.st | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/src/ECEC-Model/ECECModel.class.st b/src/ECEC-Model/ECECModel.class.st index 8895f15..ff52c22 100644 --- a/src/ECEC-Model/ECECModel.class.st +++ b/src/ECEC-Model/ECECModel.class.st @@ -54,10 +54,10 @@ ECECModel >> homogeneousEnvironment [ self theVegetationUnits do: [ :each | each initializeWithRandomBiomass ]. - self - initializeAgents; - displayPov: #povBiomass of: ECECVegetationUnit; - displayPov: #defaultPOV of: ECECForager + self initializeAgents. + + ECECVegetationUnit activePovSelector: #povBiomass. + ECECForager activePovSelector: #defaultPOV ] { #category : 'initialization' } @@ -141,9 +141,8 @@ ECECModel >> smallEnvironment [ createN: 1 randomlyLocatedAloneEntities: ECECUnrestrainedForager. - self - displayPov: #povBiomass of: ECECVegetationUnit; - displayPov: #defaultPOV of: ECECForager + ECECVegetationUnit activePovSelector: #povBiomass. + ECECForager activePovSelector: #defaultPOV ] { #category : 'control' }