Package com.luciad.format.s57
Interface ILcdS57Relationship
- All Known Implementing Classes:
TLcdS57Relationship
public interface ILcdS57Relationship
A bidirectional relationship between two S-57 feature objects.
A relationship always involves two participants and can be of three different types:
- master
- slave
- peer
A relationship between a master and a slave can be modelled directly as a single, direct relationship between the master and the slave, or as two indirect relationships between a shared collection feature. Peer-to-peer relationships are always modelled via a shared collection feature. The figure below illustrates each of the relationship types.
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the comment, associated with this relationship.Returns the first of the two objects that are involved in this relationship.Returns the second of the two objects that are involved in this relationship.int
getType()
Returns the type of this relationship.
-
Field Details
-
MASTER
static final int MASTER- See Also:
-
SLAVE
static final int SLAVE- See Also:
-
PEER
static final int PEER- See Also:
-
-
Method Details
-
getFirstObject
ILcdS57FeatureObject getFirstObject()Returns the first of the two objects that are involved in this relationship. In case of a direct connection between a master and a slave, this will always be the master. In case of a indirect connection via a collection feature, this will always be the collection feature.- Returns:
- the first of the two objects that are involved in this relationship.
-
getSecondObject
ILcdS57FeatureObject getSecondObject()Returns the second of the two objects that are involved in this relationship. In case of a direct connection between a master and a slave, this will always be the slave. In case of a indirect connection via a collection feature, this will always be the object that is connected to the collection feature.- Returns:
- the first of the two objects that are involved in this relationship.
-
getType
int getType()Returns the type of this relationship. This can be one ofMASTER
SLAVE
PEER
- Returns:
- the type of this relationship.
-
getComment
String getComment()Returns the comment, associated with this relationship.- Returns:
- the comment, associated with this relationship.
-