1 package org.djutils.eval;
2
3 /**
4 * RetrieveValue.java.
5 * <p>
6 * Copyright (c) 2023-2025 Delft University of Technology, Jaffalaan 5, 2628 BX Delft, the Netherlands. All rights reserved. See
7 * for project information <a href="https://djutils.org" target="_blank"> https://djutils.org</a>. The DJUTILS project is
8 * distributed under a three-clause BSD-style license, which can be found at
9 * <a href="https://djutils.org/docs/license.html" target="_blank"> https://djutils.org/docs/license.html</a>.
10 * </p>
11 * @author <a href="https://www.tudelft.nl/pknoppers">Peter Knoppers</a>
12 */
13 public interface RetrieveValue
14 {
15 /**
16 * Look up a variable and return its value. Numeric values should be returned as a DoubleScalar of some kind. Logical values
17 * should be returned as a Boolean.
18 * @param name name of the variable
19 * @return the value of the variable
20 */
21 Object lookup(final String name);
22
23 }