Package org.lsst.ccs.description
Class ComponentNode<T extends ComponentNode<T>>
java.lang.Object
org.lsst.ccs.description.ComponentNode<T>
- Type Parameters:
T- The particular instance of the ComponentNode.
- All Implemented Interfaces:
Serializable
Abstract class for a node in the concrete implementation of a subsystem description.
It is a standard tree node structure containing in addition a key (the name
of the component) and the actual component that will be part of the modular
structure of the subsystem.
Subclasses define how the component is built, by overriding
setComponent()- Author:
- The LSST CCS Team
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadds a ComponentNode as a child of the current nodevoidgetKey()getPath()getTags()Gets the node tags for this node.voidsetComponent(Object component) voidsetProtocol(String protocol) toString()
-
Field Details
-
logger
-
tags
-
-
Constructor Details
-
ComponentNode
-
ComponentNode
-
-
Method Details
-
getPath
-
getProtocol
-
setProtocol
-
getComponent
-
setComponent
-
getKey
-
getChildren
- Returns:
- the list of child nodes, null if there aren't any
-
addChild
adds a ComponentNode as a child of the current node- Parameters:
child- to be added to the node- Throws:
NullPointerException- if child is null
-
toString
-
getParent
-
addTag
-
getTag
-
getTags
Gets the node tags for this node.- Returns:
- the node tags
-