package mci.model;

import kr.ac.kaist.se.simulator.BaseAction;

/**
 * NearestPTS.java
 * Nearest patient first PTS class

 * Author: Junho Kim <jhkim@se.kaist.ac.kr>

 * The MIT License (MIT)

 * Copyright (c) 2016 Junho Kim

 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions: TBD
 */
public class NearestPTS extends BasePTS{
//
    @Override
    public int getUtility(BaseAction a) {
        RescueAction rA = (RescueAction) a;
        int patientSavingBenefit = 80;
        if(rA.isAcknowledged())
            patientSavingBenefit += 20;

        int distance = rA.getRaisedLoc() > 50? rA.getRaisedLoc()-50 : 50 - rA.getRaisedLoc();
        distance *= 2;

        return patientSavingBenefit - distance;
    }

}

package mci.model;

import kr.ac.kaist.se.simulator.BaseAction;

/**
 * NearestPTS.java
 * Nearest patient first PTS class

 * Author: Junho Kim <jhkim@se.kaist.ac.kr>

 * The MIT License (MIT)

 * Copyright (c) 2016 Junho Kim

 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions: TBD
 */
public class NearestPTS extends BasePTS{
//
    @Override
    public int getUtility(BaseAction a) {
        RescueAction rA = (RescueAction) a;
        int patientSavingBenefit = 80;
        if(rA.isAcknowledged())
            patientSavingBenefit += 20;
//description about the static integer values 
        int distance = rA.getRaisedLoc() > 50? rA.getRaisedLoc()-50 : 50 - rA.getRaisedLoc();
        distance *= 2;

        return patientSavingBenefit - distance;
    }

}

Update NearestPTS.java