r1560 - branches/migration-200901/simexplorer-is/simexplorer-is-entities/src/main/java/fr/cemagref/simexplorer/is/entities/data
Author: dumoulin Date: 2009-02-16 15:05:45 +0000 (Mon, 16 Feb 2009) New Revision: 1560 Added: branches/migration-200901/simexplorer-is/simexplorer-is-entities/src/main/java/fr/cemagref/simexplorer/is/entities/data/ExplorationComponent.java Log: A new type of component to handle exploration design Added: branches/migration-200901/simexplorer-is/simexplorer-is-entities/src/main/java/fr/cemagref/simexplorer/is/entities/data/ExplorationComponent.java =================================================================== --- branches/migration-200901/simexplorer-is/simexplorer-is-entities/src/main/java/fr/cemagref/simexplorer/is/entities/data/ExplorationComponent.java (rev 0) +++ branches/migration-200901/simexplorer-is/simexplorer-is-entities/src/main/java/fr/cemagref/simexplorer/is/entities/data/ExplorationComponent.java 2009-02-16 15:05:45 UTC (rev 1560) @@ -0,0 +1,58 @@ +/* + * + * Copyright (c) 2009, Cemagref + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License as + * published by the Free Software Foundation; either version 3 of + * the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public + * License along with this program; if not, write to the Free + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, + * MA 02110-1301 USA + */ +package fr.cemagref.simexplorer.is.entities.data; + +import fr.cemagref.simexplorer.is.entities.Entity; +import fr.cemagref.simexplorer.is.entities.composite.Components; +import java.util.List; + +/** + * A particular component that suits to handle an exploration design with factors and method. + * + */ +public class ExplorationComponent extends Component { + + private RuntimeType methodType; + private Components factors; + + public Components getFactors() { + return factors; + } + + public void setFactors(Components factors) { + this.factors = factors; + } + + public RuntimeType getMethodType() { + return methodType; + } + + public void setMethodType(RuntimeType methodType) { + this.methodType = methodType; + } + + @Override + public List<Entity> getChildren() { + List<Entity> children = super.getChildren(); + children.add(methodType); + children.add(factors); + return children; + } +}
participants (1)
-
dumoulinï¼ users.labs.libre-entreprise.org