com.ikokoon.serenity.model
Class Model

java.lang.Object
  extended by com.ikokoon.serenity.model.Model
All Implemented Interfaces:
IModel, java.io.Serializable

public class Model
extends java.lang.Object
implements IModel

NOT USED, used to the the model for the chart applet. This model is a collection of metrics for a composite. In the case of several packages that have been analysed over time, the metrics for the packages are accumulated and represented in a list of lists that can be seen as a matrix of data. This data is then displayed in the front end in the Applet.

Since:
09.12.09
Version:
01.00
Author:
Michael Couck
See Also:
Serialized Form

Constructor Summary
Model(java.lang.String name, java.util.List<java.lang.String> legend, java.util.List<java.util.ArrayList<java.lang.Double>> metrics)
          Constructor takes all the data to initialise the model.
 
Method Summary
 java.util.List<java.lang.String> getLegend()
          Access to the legend for the graph.
 java.util.List<java.util.ArrayList<java.lang.Double>> getMetrics()
          Access to the matrix of the data for the composites.
 java.lang.String getName()
          Access to the name of the composite.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Model

public Model(java.lang.String name,
             java.util.List<java.lang.String> legend,
             java.util.List<java.util.ArrayList<java.lang.Double>> metrics)
Constructor takes all the data to initialise the model.

Parameters:
name - the name of the composite
legend - the legend for the graph
metrics - the data for the composites
Method Detail

getName

public java.lang.String getName()
Access to the name of the composite.

Specified by:
getName in interface IModel
Returns:
the name of the composites or set of composites

getLegend

public java.util.List<java.lang.String> getLegend()
Access to the legend for the graph.

Specified by:
getLegend in interface IModel
Returns:
the list of strings that represent the legend of the graph

getMetrics

public java.util.List<java.util.ArrayList<java.lang.Double>> getMetrics()
Access to the matrix of the data for the composites.

Specified by:
getMetrics in interface IModel
Returns:
the matrix of data for the graph


Copyright © 2010. All Rights Reserved.