Package jebl.evolution.trees
Class BaseEdge
java.lang.Object
jebl.evolution.trees.BaseEdge
- All Implemented Interfaces:
Edge
,Attributable
Common implementation of Attributable interface used by Nodes.
- Version:
- $Id: BaseEdge.java 956 2008-11-30 01:18:20Z rambaut $
- Author:
- Joseph Heled
-
Nested Class Summary
Nested classes/interfaces inherited from interface jebl.util.Attributable
Attributable.Utils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAttribute
(String name) Gets the entire attribute map.void
removeAttribute
(String name) void
setAttribute
(String name, Object value) Sets an named attribute for this object.
-
Constructor Details
-
BaseEdge
public BaseEdge()
-
-
Method Details
-
setAttribute
Description copied from interface:Attributable
Sets an named attribute for this object.- Specified by:
setAttribute
in interfaceAttributable
- Parameters:
name
- the name of the attribute.value
- the new value of the attribute.
-
getAttribute
- Specified by:
getAttribute
in interfaceAttributable
- Parameters:
name
- the name of the attribute of interest, or null if the attribute doesn't exist.- Returns:
- an object representing the named attributed for this object.
-
removeAttribute
- Specified by:
removeAttribute
in interfaceAttributable
- Parameters:
name
- name of attribute to remove
-
getAttributeNames
- Specified by:
getAttributeNames
in interfaceAttributable
- Returns:
- an array of the attributeNames that this object has.
-
getAttributeMap
Description copied from interface:Attributable
Gets the entire attribute map.- Specified by:
getAttributeMap
in interfaceAttributable
- Returns:
- an unmodifiable map
-