|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IPoint<DataModelClass,SegmentClass>
Generic class for points. The parameters must be constrained to the data model class the point is representing and to the segment class it can be added to.
| Method Summary | |
|---|---|
void |
addToSegment(SegmentClass segment)
Add this point to a specific segment. |
Class |
getDataModelClass()
Get the Data Model class for this point. |
DataModelClass |
getDataModelInstance()
Get an instance of the Data Model representing this point. |
IList<SegmentClass> |
getSegments()
List of segments this point belongs to. |
void |
removeFromSegment(SegmentClass segment)
Remove this point from a segment. |
void |
setDataModelInstance(DataModelClass instance)
Set the "value" of this point, by providing an instance of the Data Model class. |
| Method Detail |
|---|
IList<SegmentClass> getSegments()
DataModelClass getDataModelInstance()
void setDataModelInstance(DataModelClass instance)
instance - The Data Model instance that stores the "value" of this point.Class getDataModelClass()
void addToSegment(SegmentClass segment)
throws SedException
segment - The segment this point must be added to.
SedException - This method throws an exception if the point is somehow inconsistent with the segment
it is being tried to be added to.void removeFromSegment(SegmentClass segment)
segment - The segment this point has to be removed from
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||