|
Bees v0.5.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--bees.core.bdomain.CapabilityTree
A CapabilityTree is a helper class used to produce an array of CapabilityEnvelopes from a tree of envelopes and other CapabilityTrees.
Constructor Summary | |
CapabilityTree(CapabilityEnvelope[] ce)
Construct a CapabilityTree with the given value. |
|
CapabilityTree(CapabilityEnvelope[] ce,
CapabilityTree[] children)
Construct a CapabilityTree with the given values. |
|
CapabilityTree(CapabilityTree[] children)
Construct a CapabilityTree with the given value. |
|
CapabilityTree(ObjectMap om)
Construct a CapabilityTree with the given values. |
|
CapabilityTree(java.lang.String prefix,
ObjectMap om)
Construct a CapabilityTree with the given values. |
|
CapabilityTree(java.lang.String prefix,
ObjectMap om,
CapabilityTree[] children)
Construct a CapabilityTree with the given values. |
Method Summary | |
CapabilityTree |
addChild(CapabilityTree ct)
Add a child tree to this node. |
CapabilityEnvelope[] |
flatten()
|
static CapabilityEnvelope[] |
flattenMap(java.lang.String prefix,
ObjectMap om)
Flatten the given object map into an array of CapabilityEnvelopes. |
static java.util.Vector |
flattenMap(java.util.Vector vec,
java.lang.String prefix,
ObjectMap om)
Flatten the given object map into a Vector of CapabilityEnvelopes. |
int |
size()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public CapabilityTree(CapabilityEnvelope[] ce, CapabilityTree[] children)
ce
- The array of CapabilityEnvelopes that make up this node in the
tree.children
- The CapabilityTree's that are children of this node.public CapabilityTree(CapabilityTree[] children)
children
- The CapabilityTree's that are children of this node.public CapabilityTree(CapabilityEnvelope[] ce)
ce
- The array of CapabilityEnvelopes that make up this node in the
tree.public CapabilityTree(java.lang.String prefix, ObjectMap om, CapabilityTree[] children)
prefix
- The prefix to add to any envelope names or null if the
envelopes should be anonymous.om
- The ObjectMap to break down into separate envelopes.children
- The CapabilityTree's that are children of this node.public CapabilityTree(java.lang.String prefix, ObjectMap om)
prefix
- The prefix to add to any envelope names or null if the
envelopes should be anonymous.om
- The ObjectMap to break down into separate envelopes.public CapabilityTree(ObjectMap om)
om
- The ObjectMap to break down into separate anonymous envelopes.Method Detail |
public static java.util.Vector flattenMap(java.util.Vector vec, java.lang.String prefix, ObjectMap om)
vec
- The vector to add the envelopes to or null if a new one
should be created.prefix
- The prefix to add to any envelope names or null if the
envelopes should be anonymous.om
- The ObjectMap to break down into separate envelopes.public static CapabilityEnvelope[] flattenMap(java.lang.String prefix, ObjectMap om)
prefix
- The prefix to add to any envelope names or null if the
envelopes should be anonymous.om
- The ObjectMap to break down into separate envelopes.public CapabilityTree addChild(CapabilityTree ct)
ct
- The child CapabilityTree to add to this node.public int size()
public CapabilityEnvelope[] flatten()
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
|
Bees v0.5.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |