src/model/agent/DecisionContext.java
public boolean conditionsAreRight() {
        double lightThreshold = ((parameters.crimeLightThreshold * parameters.lightWeight)
                + (Model.rand.nextDouble() * parameters.lightRandomWeight))
                / parameters.totalConditionsWeight;
        
        return getLight() < lightThreshold 
                && getWitnessesInSight().size() <= parameters.maxWitnessesInSight;
    }
/**
     * Returns true if the conditions around the agent are conducive
     * to criminal activities.
     */
Returns true if the conditions around the agent are conducive
to criminal activities.
Returns true if the conditions around the agent are conducive to criminal activities .
public boolean conditionsAreRight() {
        double lightThreshold = ((parameters.crimeLightThreshold * parameters.lightWeight)
                + (Model.rand.nextDouble() * parameters.lightRandomWeight))
                / parameters.totalConditionsWeight;
        return getLight() < lightThreshold 
                && getWitnessesInSight().size() <= parameters.maxWitnessesInSight;
    }
public boolean conditionsAreRight ( ) { double lightThreshold = ( ( parameters . crimeLightThreshold * parameters . lightWeight ) + ( Model . rand . nextDouble ( ) * parameters . lightRandomWeight ) ) / parameters . totalConditionsWeight ; return getLight ( ) < lightThreshold && getWitnessesInSight ( ) . size ( ) <= parameters . maxWitnessesInSight ; }
Returns true if the conditions around the agent are conducive
 to criminal activities.
Returns true if the conditions around the agent are conducive to criminal activities .