package nl.tudelft.simulation.dsol.interpreter; /** *

* copyright (c) 2002-2018 Delft University of Technology.
* BSD-style license. See DSOL * License.
* @author Peter Jacobs * @author Alexander Verbraeck */ public class SubMethods { /** * Subclass method. * @return number 10 */ protected int iSub10() { return 10; } /** * Subclass method. * @return number 10 */ protected int iOver5() { return 10; } /** * Subclass method. * @return number 3 */ protected int iPlus4() { return 3; } /** * Subclass method. * @param nul value = 0 * @return number 1 + 2 + 3 */ protected int iPl123(int nul) { int i = nul; i += 1; i += 2; i += 3; return i; } /** * Subclass method. * @return String ABC */ protected String sSubABC() { return "ABC"; } /** * Subclass method. * @param abc value to add to the end * @return String DEF plus value in argument */ protected String sPlusDEF(String abc) { return "DEF" + abc; } }