I have an agent "customer" with the parameter "BatteryProblem" randomTrue (0.5), and I have an agent "Technician" with a population of 3. I am trying to assign one technique to solve only "BatteryProblem" and the other two techniques to solve the remaining problems that are not battery related?
My approach is given below:
technicians(0).problemsSolved = "battery"
.unit.problemsSolved.equals("battery")
. Like this;Problem: I am having the error Description: problemsSolved cannot be resolved or is not a field. Location: tech/Main/seize - Seize
Screen Short of my model given below:
Just in case you need any further information feel free to ask.
Try the following instead:
((Technician)unit).problemsSolved.equals("battery")