|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.cesr.more.basic.edge.MEdge<V>
public class MEdge<V>
Default MORe edge
Field Summary | |
---|---|
protected boolean |
active
|
protected boolean |
directed
|
protected V |
end
|
protected double |
fadeAmount
|
protected V |
start
|
protected double |
weight
|
Constructor Summary | |
---|---|
MEdge(V start,
V end)
Creates an undirected edge. |
|
MEdge(V start,
V end,
boolean directed)
|
|
MEdge(V start,
V end,
boolean directed,
double weight)
|
Method Summary | |
---|---|
void |
activate()
Mark the edge active for the current tick. |
void |
fadeWeight()
Fades the edge weight by MNetManipulatePa.DYN_FADE_OUT_AMOUNT . |
V |
getEnd()
For undirected edges, it returns the node that was given as second node parameter. |
V |
getStart()
For undirected edges, it returns the node that was given as first node parameter. |
double |
getWeight()
|
int |
hashCode()
|
boolean |
isActive()
True if the edge was/is active during the current tick. |
boolean |
isDirected()
|
void |
setWeight(double weight)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected V start
protected V end
protected double weight
protected boolean directed
protected boolean active
protected double fadeAmount
Constructor Detail |
---|
public MEdge(V start, V end)
start
- end
- public MEdge(V start, V end, boolean directed)
start
- end
- directed
- public MEdge(V start, V end, boolean directed, double weight)
start
- end
- directed
- weight
- Method Detail |
---|
public V getEnd()
MoreEdge
getEnd
in interface MoreEdge<V>
MoreEdge.getEnd()
public V getStart()
MoreEdge
getStart
in interface MoreEdge<V>
MoreEdge.getStart()
public double getWeight()
getWeight
in interface MoreEdge<V>
MoreEdge.getWeight()
public void setWeight(double weight)
setWeight
in interface MoreEdge<V>
weight
- that is associated with this edgeMoreEdge.setWeight(double)
public String toString()
toString
in class Object
public boolean isDirected()
isDirected
in interface MoreEdge<V>
MoreEdge.isDirected()
public int hashCode()
hashCode
in class Object
Object.hashCode()
public void activate()
MoreTraceableEdge
activate
in interface MoreTraceableEdge<V>
MoreTraceableEdge.activate()
public boolean isActive()
MoreTraceableEdge
isActive
in interface MoreTraceableEdge<V>
MoreTraceableEdge.isActive()
public void fadeWeight()
MoreFadingWeightEdge
MNetManipulatePa.DYN_FADE_OUT_AMOUNT
.
fadeWeight
in interface MoreFadingWeightEdge
MoreFadingWeightEdge.fadeWeight()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |