Skip to content

Commit

Permalink
Fixed Javadoc warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
sylvainhalle committed Jan 3, 2017
1 parent faa220f commit 7d5c299
Show file tree
Hide file tree
Showing 9 changed files with 35 additions and 38 deletions.
5 changes: 2 additions & 3 deletions Source/Core/src/ca/uqac/lif/labpal/Experiment.java
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ public Experiment setId(int id)
* fulfilled. Override this method if your experiment must do some form of
* setup before starting (e.g. generating files, etc.). Do <em>not</em>
* satisfy the prerequisites here: rather use
* {@link #fulfillPrerequisites(JsonMap)}.
* {@link #fulfillPrerequisites()}.
*
* @return true if the prerequisites are fulfilled, false otherwise
*/
Expand All @@ -166,7 +166,7 @@ public boolean prerequisitesFulfilled()
* Override this method if your experiment must do some form of
* setup before starting (e.g. generating files, etc.). Obviously, there
* should be some form of coherence between this method and
* {@link #prerequisitesFulfilled(JsonMap)}.
* {@link #prerequisitesFulfilled()}.
*
* @return true if the prerequisites have been successfully generated,
* false otherwise
Expand All @@ -179,7 +179,6 @@ public boolean fulfillPrerequisites()
/**
* Cleans any prerequisites this experiment may have generated.
* For example: deleting files that were generated, etc.
* @see {@link #fulfillPrerequisites(JsonMap)}
*/
public void cleanPrerequisites()
{
Expand Down
9 changes: 4 additions & 5 deletions Source/Core/src/ca/uqac/lif/labpal/Laboratory.java
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,7 @@ public abstract class Laboratory
private transient Thread m_thread;

/**
* The number of parkmips
* @see {@link #countParkMips()}
* The number of parkmips (see {@link #countParkMips()})
*/
public transient static float s_parkMips = countParkMips();

Expand Down Expand Up @@ -207,7 +206,7 @@ public final String getAuthorName()
* Adds an experiment to the lab
* @param e The experiment
* @param group The group to add this experiment to
* @param plots Optional: a number of plots this experiment should be
* @param tables Optional: a number of tables this experiment should be
* associated with
* @return This lab
*/
Expand All @@ -231,7 +230,7 @@ public Laboratory add(Experiment e, Group group, ExperimentTable ... tables)
/**
* Adds an experiment to the lab
* @param e The experiment
* @param plots Optional: a number of tables this experiment should be
* @param tables Optional: a number of tables this experiment should be
* associated with
* @return This lab
*/
Expand All @@ -255,7 +254,7 @@ public Laboratory addAndQueue(Experiment e)

/**
* Assigns plots to this lab
* @param p The plots
* @param plots The plots
* @return This lab
*/
public Laboratory add(Plot ... plots)
Expand Down
2 changes: 1 addition & 1 deletion Source/Core/src/ca/uqac/lif/labpal/plot/Plot.java
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ public final int getId()

/**
* Gets the plot's title
* @return
* @return The title
*/
public final String getTitle()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public class ClusteredHistogram extends GnuPlot implements TwoDimensionalPlot

/**
* Whether the histogram is of type "row stacked".
* @see {@link #rowStacked()}
* (see {@link #rowStacked()})
*/
protected boolean m_rowStacked = false;

Expand Down
12 changes: 7 additions & 5 deletions Source/Core/src/ca/uqac/lif/labpal/plot/gral/GralPlot.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,18 +34,20 @@
public class GralPlot extends Plot
{
/**
* Creates a new wrapped plot from a plot
* @param p The plot
* Creates a new plot from a table
* @param t The table
*/
public GralPlot(Table t)
{
super(t);
}

/**
* Creates a new wrapped plot from a plot
* @param p The plot
* @param transformation A table transformation
* Creates a new plot from a table, applying a transformation
* to this table
* @param t The table
* @param transformation A table transformation. This transformation
* will be applied to the table before plotting.
*/
public GralPlot(Table t, TableTransformation transformation)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -283,8 +283,8 @@ public static String getStatusLabel(Experiment e, LabAssistant assistant)

/**
* Performs the "queue" action on every experiment selected in the
* input form
* @see {@link LabAssistant#queue(Experiment)}
* input form
* @see LabAssistant#queue(Experiment)
* @param params The input parameters of the HTML form
* @return A message indicating the success of the operation
*/
Expand All @@ -311,7 +311,7 @@ protected String queue(Map<String,String> params)
/**
* Performs the "reset" action on every experiment selected in the
* input form
* @see {@link Experiment#reset()}
* @see Experiment#reset()
* @param params The input parameters of the HTML form
* @return A message indicating the success of the operation
*/
Expand All @@ -338,7 +338,7 @@ protected String reset(Map<String,String> params)
/**
* Performs the "unqueue" action on every experiment selected in the
* input form
* @see {@link LabAssistant#unqueue(Experiment)}
* @see LabAssistant#unqueue(Experiment)
* @param params The input parameters of the HTML form
* @return A message indicating the success of the operation
*/
Expand All @@ -365,7 +365,7 @@ protected String unqueue(Map<String,String> params)
/**
* Performs the "clean" action on every experiment selected in the
* input form
* @see {@link Experiment#clean()}
* @see Experiment#clean()
* @param params The input parameters of the HTML form
* @return A message indicating the success of the operation
*/
Expand Down
23 changes: 9 additions & 14 deletions Source/Core/src/ca/uqac/lif/labpal/table/DataTable.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
import ca.uqac.lif.json.JsonNull;
import ca.uqac.lif.json.JsonNumber;
import ca.uqac.lif.json.JsonString;
import ca.uqac.lif.labpal.FileHelper;

/**
* A table made of concrete values
Expand Down Expand Up @@ -61,16 +62,11 @@ public class DataTable extends Table
* The symbol used to represent missing values in a CSV rendition
*/
public static final transient String s_datafileMissing = "?";

/**
* The OS-dependent line separator
*/
protected static final String CRLF = System.getProperty("line.separator");

/**
* Creates a new data table
* @param ordering
* @param types
* @param ordering The ordering of the columns in this table. This array
* should contain column names
*/
public DataTable(String ... ordering)
{
Expand Down Expand Up @@ -237,20 +233,19 @@ protected String toHtml(String[] sort_order)
{
TableNode node = getTree(sort_order);
StringBuilder out = new StringBuilder();
out.append("<table border=\"1\">").append(CRLF).append("<thead>").append(CRLF);
out.append("<table border=\"1\">").append(FileHelper.CRLF).append("<thead>").append(FileHelper.CRLF);
for (String key : sort_order)
{
out.append("<th>").append(key).append("</th>");
}
out.append("</thead>").append(CRLF).append("<tbody>").append(CRLF).append("<tr>").append(CRLF);
out.append("</thead>").append(FileHelper.CRLF).append("<tbody>").append(FileHelper.CRLF).append("<tr>").append(FileHelper.CRLF);
toHtml(node, out, 0, sort_order.length);
out.append("</tr>").append(CRLF).append("</tbody>").append(CRLF).append("</table>");
out.append("</tr>").append(FileHelper.CRLF).append("</tbody>").append(FileHelper.CRLF).append("</table>");
return out.toString();
}

/**
* Produces a flat HTML rendition of the table
* @return
*/
protected void toHtml(TableNode cur_node, StringBuilder out, int depth, int total_depth)
{
Expand Down Expand Up @@ -280,7 +275,7 @@ else if (cur_node.m_value instanceof JsonNull)
}
else
{
out.append("</tr>").append(CRLF).append("<tr>");
out.append("</tr>").append(FileHelper.CRLF).append("<tr>");
for (int i = 0; i < depth; i++)
{
out.append("<td>-</td>");
Expand Down Expand Up @@ -477,7 +472,7 @@ public String toCsv(String[] ordering, String separator, String missing)
out.append(missing);
}
}
out.append(CRLF);
out.append(FileHelper.CRLF);
}
return out.toString();
}
Expand All @@ -500,7 +495,7 @@ public String toString()
}
out.append(m_preferredOrdering[i]);
}
out.append(CRLF);
out.append(FileHelper.CRLF);
out.append(toCsv());
return out.toString();
}
Expand Down
7 changes: 4 additions & 3 deletions Source/Core/src/ca/uqac/lif/labpal/table/Table.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@

/**
* A multi-dimensional array of values. Tables can be passed to
* {@link Plot} objects to generate graphics.
* {@link ca.uqac.lif.labpal.plot.Plot Plot} objects to generate graphics.
*/
public abstract class Table implements DataSource
{
Expand Down Expand Up @@ -157,7 +157,8 @@ public final boolean isColumnNumeric(int columnIndex)

/**
* Gets the type of the column of given name
* @param col_name The name of the column
* @param position The position of the column, starting at 0 for the
* first column
* @return The type, or {@code null} if the column does not exist
*/
public final Class<? extends Comparable<?>> getColumnTypeFor(int position)
Expand Down Expand Up @@ -203,7 +204,7 @@ public final Column getColumn(int col)

/**
* Gets the position of the column of a given name in the table
* @param col The name
* @param name The name
* @return The column's position, or -1 if the name was not found
*/
public abstract int getColumnPosition(String name);
Expand Down
3 changes: 2 additions & 1 deletion Source/Core/src/ca/uqac/lif/labpal/table/TableEntry.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
package ca.uqac.lif.labpal.table;

import java.util.HashMap;
import java.util.Map;

/**
* An entry in a data table
Expand Down Expand Up @@ -70,7 +71,7 @@ public boolean equals(Object o)
{
return false;
}
for (Entry<String,Object> entry : entrySet())
for (Map.Entry<String,Object> entry : entrySet())
{
if (!te.get(entry.getKey()).equals(entry.getValue()))
{
Expand Down

0 comments on commit 7d5c299

Please sign in to comment.