package nl.tudelft.simulation.dsol.interpreter.process; import java.lang.reflect.Method; import nl.tudelft.simulation.dsol.interpreter.operations.custom.InterpreterOracleInterface; /** *

* Copyright (c) 2002-2021 Delft University of Technology, Jaffalaan 5, 2628 BX Delft, the Netherlands. All rights reserved. See * for project information https://simulation.tudelft.nl. The DSOL * project is distributed under a three-clause BSD-style license, which can be found at * * https://simulation.tudelft.nl/dsol/3.0/license.html. *

* @author Peter Jacobs * @author Alexander Verbraeck */ public class ProcessInterpreterOracle implements InterpreterOracleInterface { /** * constructs a new ProcessInterpreterOracle. */ public ProcessInterpreterOracle() { super(); } /** {@inheritDoc} */ @Override public final boolean shouldBeInterpreted(final Method method) { if (InterpretableProcess.class.isAssignableFrom(method.getDeclaringClass())) { return true; } return false; } }