org.decisiondeck.jmcda.persist.latex
Class LaTeXExporter

java.lang.Object
  extended by org.decisiondeck.jmcda.persist.utils.ExportSettings
      extended by org.decisiondeck.jmcda.persist.latex.LaTeXExporter

public class LaTeXExporter
extends ExportSettings


Nested Class Summary
 
Nested classes/interfaces inherited from class org.decisiondeck.jmcda.persist.utils.ExportSettings
ExportSettings.AlternativeToId, ExportSettings.CategoryToName, ExportSettings.CriterionToId, ExportSettings.DecisionMakerToId
 
Constructor Summary
LaTeXExporter(OutputSupplier<? extends Writer> destination)
           
LaTeXExporter(Writer writer)
           
 
Method Summary
 void exportAssignmentsToMultiple(IOrderedAssignmentsToMultipleRead assignments)
           
 void exportAssignmentsWithCredibilities(IOrderedAssignmentsWithCredibilitiesRead assignments)
           
 void exportEvaluations(IRdEvaluations evaluations)
           
 Integer getShortTableLimit()
           
 BufferedWriter getWriter()
          Retrieves the writer this object uses.
 void setDestination(OutputSupplier<? extends Writer> destination)
           
 void setShortTableLimit(Integer shortTableLimit)
          Sets the limit in number of rows after which this object will use a long table (if the number of rows is greater than the provided limit) instead of a short one.
 void writeLn(String string)
           
 
Methods inherited from class org.decisiondeck.jmcda.persist.utils.ExportSettings
getAlternativesOrder, getAlternativesToString, getAlternativeString, getCategoriesToString, getCategoryString, getCriteriaOrder, getCriteriaToString, getCriterionString, getDmsOrder, getDmsToString, getDmString, getNumberFormatter, getNumberString, getNumberString, getProfilesOrder, getProfilesToString, getProfileString, interOrderAlternatives, interOrderCriteria, interOrderDms, interOrderProfiles, setAlternativesOrder, setAlternativesToString, setCategoriesToString, setCriteriaOrder, setCriteriaToString, setDmsOrder, setDmsToString, setNumberFormatter, setProfilesOrder, setProfilesToString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LaTeXExporter

public LaTeXExporter(Writer writer)
Parameters:
writer - not null.

LaTeXExporter

public LaTeXExporter(OutputSupplier<? extends Writer> destination)
Parameters:
destination - not null.
Method Detail

getWriter

public BufferedWriter getWriter()
Retrieves the writer this object uses. Writing to this writer is permitted and may be used to avoid interleaving calls to this object and external writes with flushes. Note that the returned writer is not necessarily the writer given by the user, e.g. because of possible buffering in between.

Returns:
not null.

writeLn

public void writeLn(String string)
             throws IOException
Throws:
IOException

getShortTableLimit

public Integer getShortTableLimit()
Returns:
null for no limit: always use a short table. If negative, will always use a long table.

setShortTableLimit

public void setShortTableLimit(Integer shortTableLimit)
Sets the limit in number of rows after which this object will use a long table (if the number of rows is greater than the provided limit) instead of a short one.

Parameters:
shortTableLimit - null for no limit: always use a short table. If negative, will always use a long table.

exportEvaluations

public void exportEvaluations(IRdEvaluations evaluations)
                       throws IOException
Throws:
IOException

exportAssignmentsWithCredibilities

public void exportAssignmentsWithCredibilities(IOrderedAssignmentsWithCredibilitiesRead assignments)
                                        throws IOException
Throws:
IOException

setDestination

public void setDestination(OutputSupplier<? extends Writer> destination)

exportAssignmentsToMultiple

public void exportAssignmentsToMultiple(IOrderedAssignmentsToMultipleRead assignments)
                                 throws IOException
Throws:
IOException


Copyright © 2011. All Rights Reserved.