|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectdiscovery.model.ConnectionModel
public class ConnectionModel
This class represents a connection between two components in the model.
| Field Summary | |
|---|---|
static int |
COMPOSITION
Static integer representing a composition connection type in a connection between tasks. |
static int |
FLOW
Static integer representing a flow connection type in a connection. |
static int |
GENERALISATION
Static integer representing a generalisation connection type in a connection between tasks. |
static int |
OWNERSHIP
Static integer representing an ownership connection type in a connection. |
static int |
PARTICIPATION
Static integer representing a participation connection type in a connection. |
| Constructor Summary | |
|---|---|
ConnectionModel()
Creates an empty connection with no components to connect or a connection type. |
|
ConnectionModel(int c1,
int c2,
int t)
Creates a connection between components c1 and c2, of type t. |
|
ConnectionModel(int id,
int c1,
int c2,
int t)
Creates the connection with ID number id between components c1 and c2, of type t. |
|
| Method Summary | |
|---|---|
java.lang.Integer |
getComponent1()
Accessor method to get the first component (ie. |
java.lang.Integer |
getComponent2()
Accessor method to get the second component (ie. |
java.lang.Integer |
getID()
Accessor method to get the unique ID number of this connection. |
java.lang.Integer |
getRelation()
Accessor method to get the type of relationship of this connection. |
void |
setComponent1(java.lang.Integer c1)
Mutator method to set the first (ie. |
void |
setComponent2(java.lang.Integer c2)
Mutator method to set the second (ie. |
void |
setRelation(java.lang.Integer t)
Mutator method to set the type of this connection. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int COMPOSITION
public static final int GENERALISATION
public static final int PARTICIPATION
public static final int OWNERSHIP
public static final int FLOW
| Constructor Detail |
|---|
public ConnectionModel()
public ConnectionModel(int c1,
int c2,
int t)
c1 - the source component of the connectionc2 - the destination component of the connectiont - the type of connection
public ConnectionModel(int id,
int c1,
int c2,
int t)
id - the connection's ID numberc1 - the source component of the connectionc2 - the destination component of the connectiont - the type of connection| Method Detail |
|---|
public java.lang.Integer getComponent1()
public java.lang.Integer getComponent2()
public java.lang.Integer getRelation()
public java.lang.Integer getID()
public void setComponent1(java.lang.Integer c1)
c1 - the unique ID number of the first (ie. the source) component in this connectionpublic void setComponent2(java.lang.Integer c2)
c2 - the unique ID number of the second (ie. the destination) component in this connectionpublic void setRelation(java.lang.Integer t)
t - the ConnectionModel constant representing the type of the connection
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||