src/model/agent/DecisionContext.java
public boolean wouldRobAgent(Agent victim) {
        // this is the agent's inclination to rob
        double wouldRob = ((agent.age * parameters.ageWeight) 
                + (agent.education * parameters.educationWeight)
                + (agent.income * parameters.incomeWeight)
                + (Model.rand.nextDouble() * parameters.wouldRobRandomWeight)) 
                / parameters.totalWouldRobWeight;
        
        return wouldRob < victim.apparentWealth 
                && victim.getState() != AgentState.STALKING;
    }
/**
     * Returns true if this agent would rob the provided victim, false otherwise.
     */
Returns true if this agent would rob the provided victim, false otherwise.
Returns true if this agent would rob the provided victim false otherwise .
public boolean wouldRobAgent(Agent victim) {
        double wouldRob = ((agent.age * parameters.ageWeight) 
                + (agent.education * parameters.educationWeight)
                + (agent.income * parameters.incomeWeight)
                + (Model.rand.nextDouble() * parameters.wouldRobRandomWeight)) 
                / parameters.totalWouldRobWeight;
        return wouldRob < victim.apparentWealth 
                && victim.getState() != AgentState.STALKING;
    }
public boolean wouldRobAgent ( Agent victim ) { double wouldRob = ( ( agent . age * parameters . ageWeight ) + ( agent . education * parameters . educationWeight ) + ( agent . income * parameters . incomeWeight ) + ( Model . rand . nextDouble ( ) * parameters . wouldRobRandomWeight ) ) / parameters . totalWouldRobWeight ; return wouldRob < victim . apparentWealth && victim . getState ( ) != AgentState . STALKING ; }
Returns true if this agent would rob the provided victim, false otherwise.
Returns true if this agent would rob the provided victim false otherwise .
// this is the agent's inclination to rob