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

java.lang.Object
  extended by org.eclipse.ohf.stem.internal.data.IdentifiableRecord
      extended by org.eclipse.ohf.stem.internal.data.DataSetRecord
          extended by org.eclipse.ohf.stem.internal.data.GraphRecord
              extended by org.eclipse.ohf.stem.internal.data.RelationshipGraphRecord
All Implemented Interfaces:
java.lang.Comparable<IdentifiableRecord>
Direct Known Subclasses:
CommonBorderRelationshipGraphRecord, RelativePhysicalRelationshipGraphRecord, TransportRelationshipGraphRecord

public abstract class RelationshipGraphRecord
extends GraphRecord

This class represents a Graph that contains Edges representing relationships between Nodes.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.eclipse.ohf.stem.internal.data.GraphRecord
GraphRecord.GraphData
 
Nested classes/interfaces inherited from class org.eclipse.ohf.stem.internal.data.DataSetRecord
DataSetRecord.DataSetData
 
Nested classes/interfaces inherited from class org.eclipse.ohf.stem.internal.data.IdentifiableRecord
IdentifiableRecord.AdminLevel
 
Field Summary
static java.lang.String ISOKEY_0_LEVEL_PROPERTY
          This is the property in a data file that specifies the administration level for ISOKEY_0.
static java.lang.String ISOKEY_0_PROPERTY
          This is the property in a data file that specifies the ISO KEY 0 value.
static java.lang.String ISOKEY_1_LEVEL_PROPERTY
          This is the property in a data file that specifies the administration level for ISOKEY_1.
static java.lang.String ISOKEY_1_PROPERTY
          This is the property in a data file that specifies the ISO KEY 1 value.
 
Fields inherited from class org.eclipse.ohf.stem.internal.data.GraphRecord
GRAPH_RECORD_TYPE_NAME
 
Fields inherited from class org.eclipse.ohf.stem.internal.data.DataSetRecord
RECORD_CLASSNAME_PROPERTY
 
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
RelationshipGraphRecord()
          Constructor
 
Method Summary
 IdentifiableRecord.AdminLevel getAdminLevel0()
           
 IdentifiableRecord.AdminLevel getAdminLevel1()
           
 ISOKey getIsoKey0()
           
 ISOKey getIsoKey1()
           
 int getNumEdges()
           
 int getNumLabels()
           
 int getNumNodes()
           
 boolean isBetweenDifferentCountries()
           
 java.lang.String toString()
           
 
Methods inherited from class org.eclipse.ohf.stem.internal.data.GraphRecord
getGraph
 
Methods inherited from class org.eclipse.ohf.stem.internal.data.DataSetRecord
getNumModelDecorators, getNumScenarioDecorators, initializeDataSet
 
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

ISOKEY_0_PROPERTY

public static final java.lang.String ISOKEY_0_PROPERTY
This is the property in a data file that specifies the ISO KEY 0 value.

See Also:
Constant Field Values

ISOKEY_1_PROPERTY

public static final java.lang.String ISOKEY_1_PROPERTY
This is the property in a data file that specifies the ISO KEY 1 value.

See Also:
Constant Field Values

ISOKEY_0_LEVEL_PROPERTY

public static final java.lang.String ISOKEY_0_LEVEL_PROPERTY
This is the property in a data file that specifies the administration level for ISOKEY_0.

See Also:
Constant Field Values

ISOKEY_1_LEVEL_PROPERTY

public static final java.lang.String ISOKEY_1_LEVEL_PROPERTY
This is the property in a data file that specifies the administration level for ISOKEY_1.

See Also:
Constant Field Values
Constructor Detail

RelationshipGraphRecord

public RelationshipGraphRecord()
Constructor

Method Detail

getAdminLevel0

public final IdentifiableRecord.AdminLevel getAdminLevel0()
Returns:
the adminLevel0

getAdminLevel1

public final IdentifiableRecord.AdminLevel getAdminLevel1()
Returns:
the adminLevel1

getIsoKey1

public final ISOKey getIsoKey1()
Returns:
the isoKey1

getIsoKey0

public final ISOKey getIsoKey0()
Returns:
the isoKey0

getNumEdges

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

getNumLabels

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

getNumNodes

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

toString

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

isBetweenDifferentCountries

public boolean isBetweenDifferentCountries()
Returns:
true if the relationship is between different countries, false otherwise