| 1 | /* |
| 2 | * SummaryStatisticDescription.java |
| 3 | * |
| 4 | * Copyright (c) 2002-2015 Alexei Drummond, Andrew Rambaut and Marc Suchard |
| 5 | * |
| 6 | * This file is part of BEAST. |
| 7 | * See the NOTICE file distributed with this work for additional |
| 8 | * information regarding copyright ownership and licensing. |
| 9 | * |
| 10 | * BEAST is free software; you can redistribute it and/or modify |
| 11 | * it under the terms of the GNU Lesser General Public License as |
| 12 | * published by the Free Software Foundation; either version 2 |
| 13 | * of the License, or (at your option) any later version. |
| 14 | * |
| 15 | * BEAST is distributed in the hope that it will be useful, |
| 16 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 17 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 18 | * GNU Lesser General Public License for more details. |
| 19 | * |
| 20 | * You should have received a copy of the GNU Lesser General Public |
| 21 | * License along with BEAST; if not, write to the |
| 22 | * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, |
| 23 | * Boston, MA 02110-1301 USA |
| 24 | */ |
| 25 | |
| 26 | package dr.app.treestat.statistics; |
| 27 | |
| 28 | /** |
| 29 | * An interface and collection of tree summary statistics. |
| 30 | * |
| 31 | * @version $Id: SummaryStatisticDescription.java,v 1.1 2005/09/26 22:14:15 rambaut Exp $ |
| 32 | * |
| 33 | * @author Alexei Drummond |
| 34 | */ |
| 35 | public interface SummaryStatisticDescription { |
| 36 | |
| 37 | String getSummaryStatisticName(); |
| 38 | |
| 39 | String getSummaryStatisticDescription(); |
| 40 | |
| 41 | String getSummaryStatisticReference(); |
| 42 | |
| 43 | boolean allowsPolytomies(); |
| 44 | |
| 45 | boolean allowsNonultrametricTrees(); |
| 46 | |
| 47 | boolean allowsUnrootedTrees(); |
| 48 | |
| 49 | Category getCategory(); |
| 50 | |
| 51 | public class Category { |
| 52 | |
| 53 | public static final Category TREE_SHAPE = new Category("Tree shape"); |
| 54 | public static final Category PHYLOGENETIC = new Category("Phylogenetic"); |
| 55 | public static final Category POPULATION_GENETIC = new Category("Population genetic"); |
| 56 | public static final Category GENERAL = new Category("General"); |
| 57 | public static final Category SPECIATION = new Category("Speciation/Birth-death"); |
| 58 | |
| 59 | private Category(String name) { |
| 60 | this.name = name; |
| 61 | } |
| 62 | |
| 63 | public String toString() { return name; } |
| 64 | |
| 65 | private String name; |
| 66 | } |
| 67 | |
| 68 | } |
| 69 |