/* * ObservedBehavior.java * * Created on Feb 2, 2009, 8:16:46 AM * * Description: Provides a representation of an observed behavior. * * Copyright (C) Feb 2, 2009 Stephen L. Reed. * * 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 2 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., 675 Mass Ave, Cambridge, MA 02139, USA. */ package org.texai.ahcs.character; import java.util.List; import net.jcip.annotations.NotThreadSafe; import org.openrdf.model.Statement; /** Provides a representation of an observed behavior. * * @author Stephen L. Reed */ @NotThreadSafe public class ObservedBehavior { /** the statements that represent this observed behavior */ private final List<Statement> statements; /** Constructs a new ObservedBehavior instance. * * @param statements the statements representing the observed behavior */ public ObservedBehavior(final List<Statement> statements) { //Preconditions assert statements != null : "statements must not be null"; assert !statements.isEmpty() : "statements must not be empty"; this.statements = statements; } /** Gets the statements that represent this observed behavior. * * @return the statements that represent this observed behavior */ public List<Statement> getStatements() { return statements; } }