@@ -0,0 +1,2044 @@
+/*%0D%0A * Copyright (C) 2007 ETH Zurich%0D%0A *%0D%0A * This file is part of Accada (www.accada.org).%0D%0A *%0D%0A * Accada is free software; you can redistribute it and/or%0D%0A * modify it under the terms of the GNU Lesser General Public%0D%0A * License version 2.1, as published by the Free Software Foundation.%0D%0A *%0D%0A * Accada is distributed in the hope that it will be useful,%0D%0A * but WITHOUT ANY WARRANTY; without even the implied warranty of%0D%0A * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU%0D%0A * Lesser General Public License for more details.%0D%0A *%0D%0A * You should have received a copy of the GNU Lesser General Public%0D%0A * License along with Accada; if not, write to the Free%0D%0A * Software Foundation, Inc., 51 Franklin Street, Fifth Floor,%0D%0A * Boston, MA  02110-1301  USA%0D%0A */%0D%0A%0D%0Apackage org.accada.reader.hal;%0D%0A%0D%0A/**%0D%0A * The class is a data structure to store information that describes the memory %0D%0A * structure of a tag, i.e. the memory banks.%0D%0A * %0D%0A * @author %09Matthias Lampe, lampe@acm.org%0D%0A */%0D%0Apublic class MemoryDescriptor %7B%0D%0A%09%0D%0A%09//---- Fields -----------------------------------------------------------%0D%0A%0D%0A%09/** The descriptions of the memory banks */%0D%0A%09protected MemoryBankDescriptor%5B%5D memoryBankDescriptors;%0D%0A%0D%0A%09%0D%0A%09//---- Constructor(s) ---------------------------------------------------%0D%0A%0D%0A%09/**%0D%0A%09 * creates a memory descriptor with the given paramter.%0D%0A%09 *%0D%0A%09 * @param memoryBankDescriptors the descriptions of the memory banks%0D%0A%09 */%0D%0A%09public MemoryDescriptor(MemoryBankDescriptor%5B%5D memoryBankDescriptors) %7B%0D%0A%09%09this.memoryBankDescriptors = memoryBankDescriptors;%0D%0A%09%7D%0D%0A%0D%0A%0D%0A%09//---- Methods ----------------------------------------------------------%0D%0A%0D%0A%09/**%0D%0A%09 * gets the descriptions of the memory banks.%0D%0A%09 * %0D%0A%09 * @return the memory bank descriptors%0D%0A%09 */%0D%0A%09public MemoryBankDescriptor%5B%5D getMemoryBankDescriptors() %7B%0D%0A%09%09return memoryBankDescriptors;%0D%0A%09%7D%0D%0A%0D%0A%09/**%0D%0A%09 * Gets the number of memory banks.%0D%0A%09 * %0D%0A%09 * @return the number of memory banks.%0D%0A%09 */%0D%0A%09int getNumberOfMemoryBanks() %7B%0D%0A%09%09return memoryBankDescriptors.length;%0D%0A%09%7D%0D%0A%7D%0D%0A

move part of reader-hal to hal-commons