public class DefaultLink extends Object implements Link, Distributable, Serializable
Link
.Constructor and Description |
---|
DefaultLink(ConnectionPoint src,
ConnectionPoint dst) |
DefaultLink(ConnectionPoint src,
ConnectionPoint dst,
Link.Type type) |
Modifier and Type | Method and Description |
---|---|
ConnectionPoint |
dst()
Returns the link destination connection point.
|
boolean |
equals(Object o) |
int |
hashCode() |
DefaultLinkInfo |
info()
Returns the
link information associated with the link. |
ConnectionPoint |
src()
Returns the link source connection point.
|
SupplierId |
supplierId()
Returns the id of the supplier that provided this model entity.
|
String |
toString() |
Link.Type |
type()
Returns the type of the link.
|
void |
updateInfo(DefaultLinkInfo info)
Updates the info associated with this link.
|
public DefaultLink(ConnectionPoint src, ConnectionPoint dst)
public DefaultLink(ConnectionPoint src, ConnectionPoint dst, Link.Type type)
public ConnectionPoint src()
Link
public ConnectionPoint dst()
Link
public DefaultLinkInfo info()
Link
link information
associated with the link.
The link information describes the link type and time the link was
last reported by a supplier of links.public void updateInfo(DefaultLinkInfo info)
info
- updated infopublic SupplierId supplierId()
Model
supplierId
in interface Model
Copyright © 2016. All Rights Reserved.