/*******************************************************************************
 * UW SPF - The University of Washington Semantic Parsing Framework
 * <p>
 * Copyright (C) 2013 Yoav Artzi
 * <p>
 * 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 any later version.
 * <p>
 * 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.
 * <p>
 * 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 Street, Fifth Floor, Boston, MA 02110-1301, USA.
 ******************************************************************************/
package edu.uw.cs.lil.tiny.data.situated.sentence;

import edu.uw.cs.lil.tiny.data.sentence.Sentence;
import edu.uw.cs.lil.tiny.data.situated.ISituatedDataItem;

/**
 * A sentence situated in some kind of state.
 * 
 * @author Yoav Artzi
 * @param <STATE>
 *            Type of state/situation.
 */
public class SituatedSentence<STATE> extends Sentence implements
		ISituatedDataItem<Sentence, STATE> {
	
	private final STATE	state;
	
	public SituatedSentence(Sentence sentence, STATE state) {
		super(sentence.getTokens());
		this.state = state;
	}
	
	@Override
	public STATE getState() {
		return state;
	}
	
	@Override
	public String toString() {
		return super.toString() + " :: " + state.toString();
	}
	
}
