pl.edu.agh.cast.schema.model.presentation
Interface ISchemaConnection
- All Superinterfaces:
- Identifiable, IDisposable, IElement, IPresentationElement<IElement>, IPropertyChangeProvider, IPropertyContainer, IReplicable, ISchemaElement<IElement>, IValidatable, Observer, Serializable
- All Known Implementing Classes:
- SchemaConnection
public interface ISchemaConnection
- extends ISchemaElement<IElement>
Interface which describes a single connection between two SchemaNode
objects in a schema diagram. A
ISchemaConnection
instance can derive one or more
IManyToManyRelation
objects and expose summaries of them via properties.
- Author:
- AGH CAST Team
Field Summary |
static Type |
TYPE
Schema connection element type. |
TYPE
static final Type TYPE
- Schema connection element type.
getSourceNode
@PropertyGetter(name="SOURCE_NODE",
type=REFERENCE,
matchable=true)
ISchemaNode getSourceNode()
- Gets source node. If a connection is indirected this node is represented just as one of the connection's end.
- Returns:
- source node
getTargetNode
@PropertyGetter(name="TARGET_NODE",
type=REFERENCE,
matchable=true)
ISchemaNode getTargetNode()
- Gets target node. If a connection is indirected this node is represented just as one of the connection's end.
- Returns:
- target node
setSourceNode
void setSourceNode(ISchemaNode node)
- Sets source node. If a connection is indirected this node is represented just as one of the connection's end.
- Parameters:
node
- source node
setTargetNode
void setTargetNode(ISchemaNode node)
- Sets target node. If a connection is indirected this node is represented just as one of the connection's end.
- Parameters:
node
- target node
isDirected
@PropertyGetter(name="DIRECTED",
type=BOOLEAN,
matchable=true)
Boolean isDirected()
- Indicates if a connections is directed or not.
- Returns:
- true if connection is directed, false otherwise
getWeight
@TransientProperty(name="WEIGHT",
type=INTEGER,
matchable=false)
Integer getWeight()
- A problem dependent weight.
- Returns:
- weight of the connection
isBetween
boolean isBetween(ISchemaNode node1,
ISchemaNode node2)
- Checks if this connection is between two given nodes.
- Parameters:
node1
- first nodenode2
- second node
- Returns:
true
if this connection group is between two given nodes
Copyright © 2007-2009 IISG AGH-UST Krakow, Poland. All Rights Reserved.