001package jmri.jmrix.oaktree; 002 003 004/** 005 * Contains the data payload of a serial reply packet. Note that it's _only_ the 006 * payload. 007 * 008 * @author Bob Jacobsen Copyright (C) 2002, 2006 009 */ 010public class SerialReply extends jmri.jmrix.AbstractMRReply { 011 012 // create a new one 013 public SerialReply() { 014 super(); 015 setBinary(true); 016 } 017 018 public SerialReply(String s) { 019 super(s); 020 setBinary(true); 021 } 022 023 public SerialReply(SerialReply l) { 024 super(l); 025 setBinary(true); 026 } 027 028 /** 029 * Is reply to poll message. 030 * @return element 0. 031 */ 032 public int getAddr() { 033 return getElement(0); 034 } 035 036 @Override 037 protected int skipPrefix(int index) { 038 // doesn't have to do anything 039 return index; 040 } 041 042}