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

Nested Class Summary
 
Nested classes/interfaces inherited from interface pl.edu.agh.cast.data.model.presentation.IPresentationElement
IPresentationElement.Properties, IPresentationElement.PropertyCategory
 
Field Summary
static Type TYPE
          Schema connection element type.
 
Fields inherited from interface pl.edu.agh.cast.data.model.presentation.IPresentationElement
ATTRIBUTE_CHANGE_EVENT
 
Method Summary
 ISchemaNode getSourceNode()
          Gets source node.
 ISchemaNode getTargetNode()
          Gets target node.
 Integer getWeight()
          A problem dependent weight.
 boolean isBetween(ISchemaNode node1, ISchemaNode node2)
          Checks if this connection is between two given nodes.
 Boolean isDirected()
          Indicates if a connections is directed or not.
 void setSourceNode(ISchemaNode node)
          Sets source node.
 void setTargetNode(ISchemaNode node)
          Sets target node.
 
Methods inherited from interface pl.edu.agh.cast.data.model.presentation.IPresentationElement
getDerivedType, getLabel, getOriginalElements, getVisualElement, hasAssociatedVisualElement, setDerivedType, setLabel, setOriginalElements, setSuppressAllEvents, setVisualElement
 
Methods inherited from interface pl.edu.agh.cast.data.model.IElement
getDataSet
 
Methods inherited from interface pl.edu.agh.cast.data.model.Identifiable
getId, getType
 
Methods inherited from interface pl.edu.agh.cast.data.model.property.IPropertyContainer
addProperty, getCustomProperties, getMetaPropertyManager, getPermanentProperties, getProperties, getProperty, getTransientProperties, matches, removeProperty, setProperty
 
Methods inherited from interface java.util.Observer
update
 
Methods inherited from interface pl.edu.agh.cast.common.IValidatable
isValid
 
Methods inherited from interface pl.edu.agh.cast.common.IDisposable
dispose
 
Methods inherited from interface pl.edu.agh.cast.common.IReplicable
replicate, replicateTo
 
Methods inherited from interface pl.edu.agh.cast.data.model.property.IPropertyChangeProvider
addPropertyChangeListener, removePropertyChangeListener
 

Field Detail

TYPE

static final Type TYPE
Schema connection element type.

Method Detail

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 node
node2 - second node
Returns:
true if this connection group is between two given nodes


Copyright © 2007-2009 IISG AGH-UST Krakow, Poland. All Rights Reserved.