Class BufferManagerStorage.Region
java.lang.Object
uk.ac.manchester.spinnaker.storage.BufferManagerStorage.Region
- Enclosing interface:
- BufferManagerStorage
A region descriptor. Not expected to support useful notions of equality.
- Author:
- Donal Fellows
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal @Valid CoreLocation
What core owned the region?final @jakarta.validation.constraints.PositiveOrZero int
How many extra bytes are being read at the end of the region in order to get an aligned read?final @jakarta.validation.constraints.PositiveOrZero int
How many extra bytes are being read at the start of the region in order to get an aligned read?final @jakarta.validation.constraints.NotNull boolean
States is a recording region True if this region is appended after every run/loop.final @jakarta.validation.constraints.Positive int
How much data was originally requested?final int
What was the index of the region in the table of regions for the core?final @jakarta.validation.constraints.Positive int
How much data should be downloaded?final @NotNull MemoryLocation
Where should the data be downloaded from? -
Constructor Summary
ConstructorsConstructorDescriptionRegion
(HasCoreLocation core, int regionIndex, MemoryLocation startLocation, int size, boolean isRecording) Create a region descriptor. -
Method Summary
-
Field Details
-
core
What core owned the region? Note that the region might be retrieved from another core of the same chip. -
regionIndex
public final int regionIndexWhat was the index of the region in the table of regions for the core? -
startAddress
Where should the data be downloaded from? This is not necessarily the start of the region. -
size
@Positive public final @jakarta.validation.constraints.Positive int sizeHow much data should be downloaded? This is not necessarily the size of the region. -
realSize
@Positive public final @jakarta.validation.constraints.Positive int realSizeHow much data was originally requested? -
initialIgnore
@PositiveOrZero public final @jakarta.validation.constraints.PositiveOrZero int initialIgnoreHow many extra bytes are being read at the start of the region in order to get an aligned read? -
finalIgnore
@PositiveOrZero public final @jakarta.validation.constraints.PositiveOrZero int finalIgnoreHow many extra bytes are being read at the end of the region in order to get an aligned read? -
isRecording
@NotNull public final @jakarta.validation.constraints.NotNull boolean isRecordingStates is a recording region True if this region is appended after every run/loop. False is this region is overwritten aevery run.
-
-
Constructor Details
-
Region
public Region(HasCoreLocation core, int regionIndex, MemoryLocation startLocation, int size, boolean isRecording) Create a region descriptor.- Parameters:
core
- What core owned the region? Note that the region might be retrieved from another core of the same chip.regionIndex
- What was the index of the region in the table of regions for the core?startLocation
- Where should the data be downloaded from? This is not necessarily the start of the region.size
- How much data should be downloaded? This is not necessarily the size of the region.isRecording
- States is a recording region True if this region is appended after every run/loop. False is this region is overwritten aevery run.
-
-
Method Details