|
Search this API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecty.layout.router.BusDescriptor
public class BusDescriptor
A descriptor for bus-related information to be associated with an edge.
It consists of a bus ID defining the bus of the associated edge, two optional edge group IDs for specifying the edge grouping at the source and target side, respectively, and an optional boolean flag to mark the edge as fixed.
Every object except null
can be used as a valid bus ID. Every edge of ID null
forms a group
of its own. Also, every object except null
can be used as a valid edge group ID. If there is no group ID
defined for an edge or if null
is set, a default group ID is used. Therefore, all such edges ending at
the same node belong to the same group.
BusRouter.EDGE_DESCRIPTOR_DPKEY
Constructor Summary | |
---|---|
BusDescriptor(java.lang.Object busID)
Creates a new instance of BusDescriptor for the specified bus ID which is marked as not fixed and uses
the default edge group IDs. |
|
BusDescriptor(java.lang.Object busID,
boolean fixed)
Creates a new instance of BusDescriptor for the specified parameters and default group IDs. |
|
BusDescriptor(java.lang.Object busID,
boolean fixed,
java.lang.Object sourceGroupID,
java.lang.Object targetGroupID)
Creates a new instance of BusDescriptor for the specified parameters. |
|
BusDescriptor(java.lang.Object busID,
java.lang.Object sourceGroupID,
java.lang.Object targetGroupID)
Creates a new instance of BusDescriptor for the specified parameters and marks it as not fixed. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
Indicates whether or not some other object is "equal to" this one. |
java.lang.Object |
getID()
Returns the bus ID. |
java.lang.Object |
getSourceGroupID()
Returns the group ID for the source side of the edge. |
java.lang.Object |
getTargetGroupID()
Returns the group ID for the target side of the edge. |
int |
hashCode()
Returns a hash code value for this BusDescriptor instance. |
boolean |
isFixed()
Returns whether or not the associated edge is fixed. |
void |
setFixed(boolean fixed)
Specifies whether or not the associated edge is fixed. |
void |
setID(java.lang.Object busID)
Specifies the bus ID. |
void |
setSourceGroupID(java.lang.Object sourceGroupID)
Specifies the new group ID for the source side of the edge. |
void |
setTargetGroupID(java.lang.Object targetGroupID)
Specifies the new group ID for the target side of the edge. |
java.lang.String |
toString()
Returns a string representation consisting of the bus ID, the fixed flag, and both group IDs. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public BusDescriptor(java.lang.Object busID)
BusDescriptor
for the specified bus ID which is marked as not fixed and uses
the default edge group IDs.
busID
- the ID of the bus to which the associated edge belongspublic BusDescriptor(java.lang.Object busID, java.lang.Object sourceGroupID, java.lang.Object targetGroupID)
BusDescriptor
for the specified parameters and marks it as not fixed.
busID
- the ID of the bus to which the associated edge belongssourceGroupID
- the group ID of the source sidetargetGroupID
- the group ID of the target sidepublic BusDescriptor(java.lang.Object busID, boolean fixed)
BusDescriptor
for the specified parameters and default group IDs.
busID
- the ID of the bus to which the associated edge belongsfixed
- true
if associated edge is fixed, false
otherwisepublic BusDescriptor(java.lang.Object busID, boolean fixed, java.lang.Object sourceGroupID, java.lang.Object targetGroupID)
BusDescriptor
for the specified parameters.
busID
- the ID of the bus to which the associated edge belongsfixed
- true
if associated edge is fixed, false
otherwisesourceGroupID
- the group ID of the source sidetargetGroupID
- the group ID of the target sideMethod Detail |
---|
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- the reference object with which to compare
true
if all corresponding parameters are equal, false
otherwisepublic int hashCode()
BusDescriptor
instance.
hashCode
in class java.lang.Object
public java.lang.Object getID()
Edges associated with descriptor instances
having the same bus ID belong to a common bus.
Every edge associated with ID null
forms a group of its own.
public void setID(java.lang.Object busID)
Edges associated with descriptor instances
having the same bus ID belong to a common bus.
Every edge associated with ID null
forms a group of its own.
busID
- the bus IDpublic java.lang.Object getSourceGroupID()
Edges incident to the same node v
but associated with different group IDs at this endpoint,
use separate bus connections at v
.
public void setSourceGroupID(java.lang.Object sourceGroupID)
Edges incident to the same node v
but associated with different group IDs at this endpoint,
use separate bus connections at v
.
null
is set, a default group ID is used.
Therefore, all associated edges ending at the same node belong to the same group.Object
. All associated edges ending at the same node belong to the same group
(unless otherwise specified in the constructor).sourceGroupID
- the group ID to setpublic java.lang.Object getTargetGroupID()
Edges incident to the same node v
but associated with different group IDs at this endpoint,
use separate bus connections at v
.
public void setTargetGroupID(java.lang.Object targetGroupID)
Edges incident to the same node v
but associated with different group IDs at this endpoint,
use separate bus connections at v
.
null
is set, a default group ID is used.
Therefore, all associated edges ending at the same node belong to the same group.Object
. All associated edges ending at the same node belong to the same group (unless otherwise specified in the constructor).targetGroupID
- the group ID to setpublic boolean isFixed()
The algorithm doesn't change the route of fixed edges but tries to prevent overlaps with non-fixed edges.
true
if the associated edge is fixed, false
otherwisepublic void setFixed(boolean fixed)
The algorithm doesn't change the route of fixed edges but tries to prevent overlaps with non-fixed edges.
fixed
- true
if the associated edge should be fixed, false
otherwisepublic java.lang.String toString()
toString
in class java.lang.Object
|
© Copyright 2000-2021, yWorks GmbH. All rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |