public interface ILcdS57Relationship
A relationship always involves two participants and can be of three different types:
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.
Modifier and Type | Field and Description |
---|---|
static int |
MASTER |
static int |
PEER |
static int |
SLAVE |
Modifier and Type | Method and Description |
---|---|
String |
getComment()
Returns the comment, associated with this relationship.
|
ILcdS57FeatureObject |
getFirstObject()
Returns the first of the two objects that are involved in this relationship.
|
ILcdS57FeatureObject |
getSecondObject()
Returns the second of the two objects that are involved in this relationship.
|
int |
getType()
Returns the type of this relationship.
|
static final int MASTER
static final int SLAVE
static final int PEER
ILcdS57FeatureObject getFirstObject()
ILcdS57FeatureObject getSecondObject()
int getType()
MASTER
SLAVE
PEER
String getComment()