001package jmri.jmrit.logixng;
002
003/**
004 * How should a named bean be addressed by an action or expression?
005 *
006 * @author Daniel Bergqvist Copyright 2020
007 */
008public enum NamedBeanAddressing {
009
010    /**
011     * Direct addressing, by entering the name of the named bean
012     */
013    Direct(Bundle.getMessage("NamedBeanAddressing_Direct")),
014
015    /**
016     * Addresssing by reference, by entering a reference that points to the named bean.
017     */
018    Reference(Bundle.getMessage("NamedBeanAddressing_Reference")),
019
020    /**
021     * Addresssing by memory, by entering a memory that points to the named bean.
022     */
023    Memory(Bundle.getMessage("NamedBeanAddressing_Memory")),
024
025    /**
026     * Addresssing by local variable, by entering a local variable that points to the named bean.
027     */
028    LocalVariable(Bundle.getMessage("NamedBeanAddressing_LocalVariable")),
029
030    /**
031     * Addresssing by formula, by entering a formula that points to the named bean.
032     */
033    Formula(Bundle.getMessage("NamedBeanAddressing_Formula")),
034
035    /**
036     * Addresssing by formula, by entering a formula that points to the named bean.
037     */
038    Table(Bundle.getMessage("NamedBeanAddressing_Table"));
039
040    private final String _text;
041
042    private NamedBeanAddressing(String text) {
043        this._text = text;
044    }
045
046    @Override
047    public String toString() {
048        return _text;
049    }
050
051}