add getComponentAllocation.
v0.2.8