001package jmri.jmrix.loconet.alm; 002 003//import org.slf4j.Logger; 004//import org.slf4j.LoggerFactory; 005 006/** 007 * 008 * @author B. Milhaupt (C) 2024 009 */ 010public class LnSimple7thGenRoute { 011 private LnSimpleRouteEntry[] routeEntries; 012 013 public LnSimple7thGenRoute() { 014 this.routeEntries = new LnSimpleRouteEntry[8]; 015 for(int i=0; i < 8; ++i) { 016 this.routeEntries[i] = new LnSimpleRouteEntry(); 017 } 018 } 019 020 /** 021 * Getter. 022 * @return the routeEntries 023 */ 024 public LnSimpleRouteEntry[] getRouteEntries() { 025 return this.routeEntries.clone(); 026 } 027 028 /** 029 * Setter. 030 * @param routeEntries the routeEntries to set 031 */ 032 public void setRouteEntries(LnSimpleRouteEntry[] routeEntries) { 033 this.routeEntries = routeEntries.clone(); 034 } 035 036 /** 037 * Setter. 038 * @param entryNum the entry to set 039 * @param routeEntry the routeEntry to set 040 */ 041 public void setRouteEntry(int entryNum, LnSimpleRouteEntry routeEntry) { 042 this.routeEntries[entryNum] = routeEntry; 043 } 044 045 /** 046 * Getter. 047 * @param entryNum the entry to get 048 * @return the route entries 049 */ 050 public LnSimpleRouteEntry getRouteEntry(int entryNum) { 051 return this.routeEntries[entryNum]; 052 } 053 054// private final static Logger log = LoggerFactory.getLogger(LnSimple7thGenRoute.class); 055}