BlockStorage

public final class BlockStorage<T>

Storage object to store some piece of information for each Block of a given FlowGraph.

Fields

storage

public final Object[] storage

The array where the storage is made.

Constructors

BlockStorage

public BlockStorage(Unit unit)

Creates a new BlockStorage for the Block’s of the given “flowGraph”. Each cell is initialized to null.

Methods

dump

public void dump()

Prints in detail the contents of this BlockStorage, onto TapEnv.curOutputStream().

retrieve

public T retrieve(Block block)

Retrieves the value of the info attached to “block”.

store

public void store(Block block, T value)

Stores “value” into the info attached to “block”.