Package ru.ispras.microtesk.model
Class ProcessingElement
- java.lang.Object
-
- ru.ispras.microtesk.model.ProcessingElement
-
public abstract class ProcessingElement extends java.lang.Object
TheProcessingElement
class holds information on the state of a PE.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
ProcessingElement.Factory
-
Constructor Summary
Constructors Modifier Constructor Description protected
ProcessingElement()
protected
ProcessingElement(ProcessingElement other)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description LocationAccessor
accessLocation(java.lang.String storageId)
LocationAccessor
accessLocation(java.lang.String storageId, java.math.BigInteger index)
protected void
addLabel(Label label)
protected void
addStorage(Memory storage)
abstract ProcessingElement
copy(boolean shared)
Creates a new copy of PE state.protected MemoryDevice
getMemory()
protected MemoryAllocator
getMemoryAllocator()
MemoryDevice
getMemoryDevice()
MemoryDevice
getMemoryDevice(java.lang.String deviceId)
protected void
initMemoryAllocator(java.lang.String storageId, int addressableUnitBitSize, java.math.BigInteger baseAddress)
protected static java.util.List<ProcessingElement>
newInstances(ProcessingElement.Factory factory, int number)
protected void
resetState()
protected void
setMemoryHandler(java.lang.String storageId, MemoryDevice handler)
-
-
-
Constructor Detail
-
ProcessingElement
protected ProcessingElement()
-
ProcessingElement
protected ProcessingElement(ProcessingElement other)
-
-
Method Detail
-
addStorage
protected final void addStorage(Memory storage)
-
addLabel
protected final void addLabel(Label label)
-
newInstances
protected static java.util.List<ProcessingElement> newInstances(ProcessingElement.Factory factory, int number)
-
copy
public abstract ProcessingElement copy(boolean shared)
Creates a new copy of PE state. Shared resources can be shared or cloned.- Parameters:
shared
- Specifies whether resources marked as shared must be shared or cloned.- Returns:
- New copy.
-
accessLocation
public final LocationAccessor accessLocation(java.lang.String storageId) throws ConfigurationException
- Throws:
ConfigurationException
-
accessLocation
public final LocationAccessor accessLocation(java.lang.String storageId, java.math.BigInteger index) throws ConfigurationException
- Throws:
ConfigurationException
-
resetState
protected final void resetState()
-
initMemoryAllocator
protected final void initMemoryAllocator(java.lang.String storageId, int addressableUnitBitSize, java.math.BigInteger baseAddress) throws ConfigurationException
- Throws:
ConfigurationException
-
getMemoryAllocator
protected MemoryAllocator getMemoryAllocator()
-
setMemoryHandler
protected final void setMemoryHandler(java.lang.String storageId, MemoryDevice handler)
-
getMemory
protected MemoryDevice getMemory()
-
getMemoryDevice
public final MemoryDevice getMemoryDevice(java.lang.String deviceId)
-
getMemoryDevice
public final MemoryDevice getMemoryDevice()
-
-