cfa.vo.iris.sed
Class SpectroPhotometricPoint

java.lang.Object
  extended by cfa.vo.iris.sed.SpectroPhotometricPoint
All Implemented Interfaces:
IPoint<ISpectralSegment,IXSegment>

public class SpectroPhotometricPoint
extends Object
implements IPoint<ISpectralSegment,IXSegment>

Author:
olaurino

Constructor Summary
SpectroPhotometricPoint(IXSegment segment, ISpectralSegment value)
           
 
Method Summary
 void addToSegment(IXSegment segment)
          Add this point to a specific segment.
 Class getDataModelClass()
          Get the Data Model class for this point.
 ISpectralSegment getDataModelInstance()
          Get an instance of the Data Model representing this point.
 IList<IXSegment> getSegments()
          List of segments this point belongs to.
 void removeFromSegment(IXSegment segment)
          Remove this point from a segment.
 void setDataModelInstance(ISpectralSegment value)
          Set the "value" of this point, by providing an instance of the Data Model class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpectroPhotometricPoint

public SpectroPhotometricPoint(IXSegment segment,
                               ISpectralSegment value)
                        throws SedException
Throws:
SedException
Method Detail

getDataModelInstance

public ISpectralSegment getDataModelInstance()
Description copied from interface: IPoint
Get an instance of the Data Model representing this point. the Data Model is the "value" of the point according to some model.

Specified by:
getDataModelInstance in interface IPoint<ISpectralSegment,IXSegment>
Returns:
An instance of the parameter class, i.e. of the Data Model represented by this point.

setDataModelInstance

public final void setDataModelInstance(ISpectralSegment value)
Description copied from interface: IPoint
Set the "value" of this point, by providing an instance of the Data Model class.

Specified by:
setDataModelInstance in interface IPoint<ISpectralSegment,IXSegment>
Parameters:
value - The Data Model instance that stores the "value" of this point.

getSegments

public IList<IXSegment> getSegments()
Description copied from interface: IPoint
List of segments this point belongs to. The same point can belong to different segments at the same time. It is up to the client to make sure that this potential redundancy doesn't lead to inconsistencies, for example that the same point doesn't get fitted more than once.

Specified by:
getSegments in interface IPoint<ISpectralSegment,IXSegment>
Returns:
An IList of extended segments

addToSegment

public void addToSegment(IXSegment segment)
                  throws SedException
Description copied from interface: IPoint
Add this point to a specific segment.

Specified by:
addToSegment in interface IPoint<ISpectralSegment,IXSegment>
Parameters:
segment - The segment this point must be added to.
Throws:
SedException - This method throws an exception if the point is somehow inconsistent with the segment it is being tried to be added to.

removeFromSegment

public void removeFromSegment(IXSegment segment)
Description copied from interface: IPoint
Remove this point from a segment.

Specified by:
removeFromSegment in interface IPoint<ISpectralSegment,IXSegment>
Parameters:
segment - The segment this point has to be removed from

getDataModelClass

public Class getDataModelClass()
Description copied from interface: IPoint
Get the Data Model class for this point. This method allows clients to cast the point Data Model to the correct subclass, if known to the client, so to leverage subtype polymorphism in both directions.

Specified by:
getDataModelClass in interface IPoint<ISpectralSegment,IXSegment>
Returns:
The actual class of this data point Data Model


Copyright © 2013. All rights reserved.