001package jmri.jmrix.ipocs; 002 003import jmri.Sensor; 004import jmri.SystemConnectionMemo; 005import jmri.managers.AbstractSensorManager; 006 007import javax.annotation.Nonnull; 008 009/** 010 * 011 * @author Fredrik Elestedt Copyright (C) 2020 012 * @since 4.21.2 013 */ 014public class IpocsSensorManager extends AbstractSensorManager { 015 016 public IpocsSensorManager(SystemConnectionMemo memo) { 017 super(memo); 018 } 019 020 private IpocsPortController getPortController() { 021 return ((IpocsSystemConnectionMemo)memo).getPortController(); 022 } 023 024 @Override 025 protected Sensor createNewSensor(@Nonnull String systemName, String userName) { 026 return new IpocsSensor(getPortController(), systemName, userName); 027 } 028}