/*************************************************************************/
/*                                                                       */
/* Use of the link grammar parsing system is subject to the terms of the */
/* license set forth in the LICENSE file included with this software.    */
/* This license allows free redistribution and use in source and binary  */
/* forms, with or without modification, subject to certain conditions.   */
/*                                                                       */
/*************************************************************************/

package org.linkgrammar;

/**
 * A plain Java bean to hold configuration of the Link Grammar parser.
 * Some configuration parameters are not really passed onto the parser,
 * but applied only when constructing a <code>ParseResult</code>. Those
 * are <code>maxLinkages</code> and <code>allowSkippedWords</code>.
 *
 * @author Borislav Iordanov
 */
public class LGConfig
{
	private int maxLinkages = 25;
	private int maxParseSeconds = 60;
	private double maxCost = -1.0;
	private boolean allowSkippedWords = true;
	private boolean storeConstituentString = false;
	private boolean storeDiagramString = false;
	private boolean storeSense = false;
	
	public int getMaxLinkages()
	{
		return maxLinkages;
	}
	public void setMaxLinkages(int m)
	{
		maxLinkages = m;
	}
	public int getMaxParseSeconds()
	{
		return maxParseSeconds;
	}
	public void setMaxParseSeconds(int m)
	{
		maxParseSeconds = m;
	}
	public double getMaxCost()
	{
		return maxCost;
	}
	public void setMaxCost(double m)
	{
		maxCost = m;
	}
	public boolean isAllowSkippedWords()
	{
		return allowSkippedWords;
	}
	public void setAllowSkippedWords(boolean a)
	{
		allowSkippedWords = a;
	}
	public boolean isStoreConstituentString()
	{
		return storeConstituentString;
	}
	public void setStoreConstituentString(boolean s)
	{
		storeConstituentString = s;
	}	

	public boolean isStoreDiagramString()
	{
		return storeDiagramString;
	}
	public void setStoreDiagramString(boolean s)
	{
		storeDiagramString = s;
	}	

	public boolean isStoreSense()
	{
		return storeSense;
	}
	public void setStoreSense(boolean s)
	{
		storeSense = s;
	}	
}

@@ -861,71 +861,49 @@
 . Th
-ose
+is
 %0D%0A * 
-are %3Ccode%3EmaxLinkages%3C/code%3E and %3Ccode%3EallowSkippedWord
+is currently only %3Ccode%3EmaxLinkage
 s%3C/c
@@ -1079,52 +1079,8 @@
 0;%0D%0A
-%09private boolean allowSkippedWords = true;%0D%0A
 %09pri
@@ -1209,19 +1209,18 @@
 false;%0D%0A
-%09
 %0D%0A
+
 %09public 
@@ -1596,164 +1596,8 @@
 %09%7D%0D%0A
-%09public boolean isAllowSkippedWords()%0D%0A%09%7B%0D%0A%09%09return allowSkippedWords;%0D%0A%09%7D%0D%0A%09public void setAllowSkippedWords(boolean a)%0D%0A%09%7B%0D%0A%09%09allowSkippedWords = a;%0D%0A%09%7D%0D%0A
 %09pub
@@ -1758,33 +1758,32 @@
 tString = s;%0D%0A%09%7D
-%09
 %0D%0A%0D%0A%09public bool
@@ -1928,17 +1928,16 @@
 = s;%0D%0A%09%7D
-%09
 %0D%0A%0D%0A%09pub
@@ -2060,11 +2060,10 @@
 s;%0D%0A
+
 %09%7D
-%09
 %0D%0A%7D%0D

Remove a parameter that does nothing at all.