001package jmri.jmrix.rfid; 002 003/* 004 * Identifying class representing a network communications port 005 * @author Bob Jacobsen Copyright (C) 2001, 2015 006 */ 007public abstract class RfidNetworkPortController extends jmri.jmrix.AbstractNetworkPortController { 008 009 protected RfidNetworkPortController(RfidSystemConnectionMemo connectionMemo) { 010 super(connectionMemo); 011 allowConnectionRecovery = true; 012 } 013 014 @Override 015 public RfidSystemConnectionMemo getSystemConnectionMemo() { 016 return (RfidSystemConnectionMemo) super.getSystemConnectionMemo(); 017 } 018 019 /** 020 * Customizable method to deal with resetting a system connection after a 021 * successful recovery of a connection. 022 */ 023 @Override 024 protected void resetupConnection() { 025 if (status()) { 026 this.getSystemConnectionMemo().getTrafficController().connectPort(this); 027 } 028 } 029}