001package jmri.jmrit.sample; 002 003import jmri.*; 004 005/** 006 * An example of a user-provided simple class 007 * that does something or other once created. 008 * 009 * All it does it remember a String. 010 * @since 4.13.4 011 */ 012 013public class SampleFunctionalClass { 014 public SampleFunctionalClass(String mem) { 015 remember = mem; 016 017 log.info("Created with \"{}\"", mem); 018 019 // register to store 020 InstanceManager.getDefault(ConfigureManager.class).registerUser(this); 021 } 022 023 String remember; 024 025 @Override 026 public String toString() { return remember; } 027 028 private final static org.slf4j.Logger log = org.slf4j.LoggerFactory.getLogger(SampleFunctionalClass.class); 029 030} 031