It contains both the total cost and also the context ( {@link com.volantis.mcs.dissection.SharedContentUsages}) within which any calculations must be performed.
It has two modes of operation depending on the value of the update flag that is specified when creating it.
If update is true then the {@link com.volantis.mcs.dissection.SharedContentUsages} will be updatedwith any shared references that are used while calculating the cost.
It it is false then the {@link com.volantis.mcs.dissection.SharedContentUsages} will not be updated.Instead if the calculations find any references to shared content that has not yet been used within the context of the {@link com.volantis.mcs.dissection.SharedContentUsages} thenthe cost will be {@link #VARIABLE} and use the arithmetic rules defined in{@link #add}. @see #add @see DissectableDocument#addElementOverhead @see DissectableDocument#addTextCost @see com.volantis.mcs.dissection.SharedContentUsages
|
|