org.eclipse.ohf.stem.internal.data
Class ModelRecord

java.lang.Object
  extended by org.eclipse.ohf.stem.internal.data.IdentifiableRecord
      extended by org.eclipse.ohf.stem.internal.data.ModelRecord
All Implemented Interfaces:
java.lang.Comparable<IdentifiableRecord>
Direct Known Subclasses:
ModelRecord.CountryModelRecord, ModelRecord.GeneralModelRecord

public abstract class ModelRecord
extends IdentifiableRecord

This class represents a Model and its metadata.


Nested Class Summary
static class ModelRecord.CountryModelRecord
          This class represents a ModelRecord for a specific country.
static class ModelRecord.FullCountryDiseaseModelRecord
          This class represents a full model with a disease model decorator
static class ModelRecord.FullCountryModelRecord
          This class represents a ModelRecord.CountryModelRecord that includes a ModelRecord.GeographicCountryModelRecord plus additional "dated" NodeLabels such as PopulationLabels and Edges with EdgeLabels such as TransportRelationshipLabel.
static class ModelRecord.GeneralModelRecord
          This class represents
static class ModelRecord.GeographicCountryModelRecord
          This class represents a ModelRecord.CountryModelRecord that includes all geographic Labels and Edges, such as AreaLabels and CommonBorderRelationshipLabels.
 
Nested classes/interfaces inherited from class org.eclipse.ohf.stem.internal.data.IdentifiableRecord
IdentifiableRecord.AdminLevel
 
Field Summary
static java.lang.String MODEL_RECORD_TYPE_NAME
          The name of the type of IdentifiableRecord this is.
 
Fields inherited from class org.eclipse.ohf.stem.internal.data.IdentifiableRecord
BIBLIOGRAPHIC_CITATION_PROPERTY, CONTRIBUTOR_PROPERTY, COVERAGE_PROPERTY, CREATED_PROPERTY, CREATOR_PROPERTY, DATE_PROPERTY, DESCRIPTION_PROPERTY, FORMAT_PROPERTY, identifiableURIPrefix, IDENTIFIER_PROPERTY, LANGUAGE_PROPERTY, LICENSE_PROPERTY, PUBLISHER_PROPERTY, RELATION_PROPERTY, REQUIRED_PROPERTY, RIGHTS_PROPERTY, SERIALIZATION_DATE_RANGE_FORMAT_1_DATE, SERIALIZATION_DATE_RANGE_FORMAT_1_DATE_YEAR, SERIALIZATION_DATE_RANGE_FORMAT_2_DATES, SOURCE_PROPERTY, SPATIAL_PROPERTY, SUBJECT_PROPERTY, TITLE_PROPERTY, TYPE_PROPERTY, VALID_PROPERTY
 
Constructor Summary
ModelRecord()
           
 
Method Summary
 void addDecorator(DecoratorRecord decorator)
           
 void addDecorators(java.util.List<DecoratorRecord> decorators)
           
 void addGraphRecord(GraphRecord graphRecord)
           
 void addGraphRecords(java.util.List<GraphRecord> graphRecords)
          Add a a list of GraphRecords
 void addModelRecord(ModelRecord modelRecord)
           
 void addModelRecords(java.util.List<ModelRecord> modelRecords)
           
 void addModelRecordWithoutDateRangeUpdate(ModelRecord modelRecord)
           
 Model getModel()
           
 int getNumEdges()
           
 int getNumLabels()
           
 int getNumModelDecorators()
           
 int getNumNodes()
           
 int getNumScenarioDecorators()
           
 java.lang.String toString()
           
 
Methods inherited from class org.eclipse.ohf.stem.internal.data.IdentifiableRecord
addAdminLevel, addAdminLevel, addAdminLevels, compareTo, getAdminLevels, getAdminLevelsAsString, getAdminLevelsMaxToMin, getDublinCore, getEndDate, getIdentifiable, getMaxAdminLevel, getMinAdminLevel, getNumAdminLevels, getStartDate, inDateRange, isYounger, serialize, serializeIdentifiable, setDublinCore, setEndDate, setIdentifiable, setStartDate
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

MODEL_RECORD_TYPE_NAME

public static final java.lang.String MODEL_RECORD_TYPE_NAME
The name of the type of IdentifiableRecord this is.

See Also:
Constant Field Values
Constructor Detail

ModelRecord

public ModelRecord()
Method Detail

getModel

public Model getModel()
Returns:
the Model

addGraphRecord

public void addGraphRecord(GraphRecord graphRecord)
Parameters:
graphRecord - the GraphRecord to add to the ModelRecord

addGraphRecords

public void addGraphRecords(java.util.List<GraphRecord> graphRecords)
Add a a list of GraphRecords

Parameters:
graphRecords - a list of GraphRecords

addModelRecordWithoutDateRangeUpdate

public void addModelRecordWithoutDateRangeUpdate(ModelRecord modelRecord)
Parameters:
modelRecord - the ModelRecord to add to the ModelRecord

addModelRecord

public void addModelRecord(ModelRecord modelRecord)
Parameters:
modelRecord - the ModelRecord to add to the ModelRecord

addModelRecords

public void addModelRecords(java.util.List<ModelRecord> modelRecords)
Parameters:
modelRecords -

addDecorator

public void addDecorator(DecoratorRecord decorator)
Parameters:
decorator - the DecoratorRecord to add to the ModelRecord

addDecorators

public void addDecorators(java.util.List<DecoratorRecord> decorators)
Parameters:
decorators -

getNumNodes

public int getNumNodes()
Specified by:
getNumNodes in class IdentifiableRecord
Returns:
the number of Nodes in the Identifiable
See Also:
IdentifiableRecord.getNumNodes()

getNumEdges

public int getNumEdges()
Specified by:
getNumEdges in class IdentifiableRecord
Returns:
the number of Edges in the Identifiable
See Also:
IdentifiableRecord.getNumEdges()

getNumLabels

public int getNumLabels()
Specified by:
getNumLabels in class IdentifiableRecord
Returns:
the number of Labels in the Identifiable
See Also:
IdentifiableRecord.getNumLabels()

getNumModelDecorators

public int getNumModelDecorators()
Specified by:
getNumModelDecorators in class IdentifiableRecord
Returns:
the number of model Decorators in the Identifiable
See Also:
IdentifiableRecord.getNumModelDecorators()

getNumScenarioDecorators

public int getNumScenarioDecorators()
Specified by:
getNumScenarioDecorators in class IdentifiableRecord
Returns:
the number of scenario Decorators in the Identifiable
See Also:
IdentifiableRecord.getNumScenarioDecorators()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
See Also:
Object.toString()