RePast
v. 2.0

uchicago.src.sim.analysis
Class SequenceSource

java.lang.Object
  |
  +--uchicago.src.sim.analysis.SequenceSource
All Implemented Interfaces:
GuiChartDataSource

public class SequenceSource
extends Object
implements GuiChartDataSource

Data source for a Sequence created via the gui chart creator. This describes the sequence that will displayed in an OpenSequenceGraph.


Constructor Summary
SequenceSource(Object feedFrom)
          Creates a SequenceSource whose data is feed from the specified object.
 
Method Summary
 GuiChartDataSource copy()
          Returns a copy of this GuiChartDataSource.
 Color getColor()
          Returns the Color of the sequence created by this SequenceSource.
 Object getFeedFrom()
          Returns the Object that provides the data (via a method or a field) for this SequenceSource.
 String getFieldName()
          Returns the field name is the data for this SequenceSource is a field.
 String getFullName()
          Returns the name of this data source prefixed by its source.
 int getMarkStyle()
          Returns the mark style (the shape of the point) for this SequenceSource.
 String getMethodName()
          Returns the name of the method that is the source of the data for this SequenceSource.
 String getName()
          Returns the name of this SequenceSource.
 String getShortName()
          Returns the name of this data source.
 void setColor(Color color)
          Sets the Color of the sequence created by this SequenceSource.
 void setFeedFrom(Object feedFrom)
          Sets the Object that provides the data (via a method or a field) for this SequenceSource.
 void setFieldName(String fieldName)
          Sets the field name of the field from which this SequenceSource gets its data.
 void setMarkStyle(int markType)
          Returns the mark style (the shape of the point) for this SequenceSource.
 void setMethodName(String methodName)
          Sets the name of the method that is the source of the data for this SequenceSource
 void setName(String name)
          Sets the name of this SequenceSource.
 String toXML()
          Returns an XML representation of this GuiChartDataSource.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SequenceSource

public SequenceSource(Object feedFrom)
Creates a SequenceSource whose data is feed from the specified object.

Parameters:
feedFrom - the object from which the data for this source comes
Method Detail

getFieldName

public String getFieldName()
Returns the field name is the data for this SequenceSource is a field.


setFieldName

public void setFieldName(String fieldName)
Sets the field name of the field from which this SequenceSource gets its data. This can be null.

Parameters:
fieldName - the name of the field that provides data for this SequenceSource

getName

public String getName()
Returns the name of this SequenceSource. This name will be the legend for this sequence.


setName

public void setName(String name)
Sets the name of this SequenceSource. This name will be the legend for this sequence.

Parameters:
name - the name of this SequenceSource

getMethodName

public String getMethodName()
Returns the name of the method that is the source of the data for this SequenceSource.


setMethodName

public void setMethodName(String methodName)
Sets the name of the method that is the source of the data for this SequenceSource

Parameters:
methodName - the name of the method that is the source of the data for this SequenceSource

getFeedFrom

public Object getFeedFrom()
Returns the Object that provides the data (via a method or a field) for this SequenceSource.


setFeedFrom

public void setFeedFrom(Object feedFrom)
Sets the Object that provides the data (via a method or a field) for this SequenceSource.

Parameters:
feedFrom - the object that provides the data (via a method or a field) for this SequenceSource

getMarkStyle

public int getMarkStyle()
Returns the mark style (the shape of the point) for this SequenceSource. The appropriate types are:


setMarkStyle

public void setMarkStyle(int markType)
Returns the mark style (the shape of the point) for this SequenceSource. The appropriate types are:

Parameters:
markType - the mark style

getColor

public Color getColor()
Returns the Color of the sequence created by this SequenceSource.

Returns:

setColor

public void setColor(Color color)
Sets the Color of the sequence created by this SequenceSource.

Parameters:
color - the color of the sequence

getFullName

public String getFullName()
Description copied from interface: GuiChartDataSource
Returns the name of this data source prefixed by its source. For example, MyModel.getData

Specified by:
getFullName in interface GuiChartDataSource

getShortName

public String getShortName()
Description copied from interface: GuiChartDataSource
Returns the name of this data source.

Specified by:
getShortName in interface GuiChartDataSource

copy

public GuiChartDataSource copy()
Description copied from interface: GuiChartDataSource
Returns a copy of this GuiChartDataSource.

Specified by:
copy in interface GuiChartDataSource

toXML

public String toXML()
Description copied from interface: GuiChartDataSource
Returns an XML representation of this GuiChartDataSource.

Specified by:
toXML in interface GuiChartDataSource

RePast
v. 2.0

Bug reports and feature requests to RePast