Class GroupedSharedState<S,T>

Object
GroupedSharedState<S,T>
Type Parameters:
S - individual-type
T - aggregate-type

public class GroupedSharedState<S,T> extends Object
Commonality between shared state for grouped export tasks.
Author:
Owen Feehan
  • Constructor Details

    • GroupedSharedState

      public GroupedSharedState(Optional<InputGrouper> grouper, Function<ConsistentChannelChecker, GroupMapByName<S,T>> createGroupMap)
      Creates a new GroupedSharedState instance.
      Parameters:
      grouper - How to group the inputs.
      createGroupMap - How to create the group-map when needed.
  • Method Details

    • getGroupMap

      public GroupMapByName<S,T> getGroupMap()
      Gets the group map, creating it if it doesn't exist yet.
      Returns:
      the GroupMapByName instance.
    • getChannelChecker

      public ConsistentChannelChecker getChannelChecker()
      Checks that Channels have a consistent voxel-data type.
    • getChannelNamesChecker

      public ConsistentChannelNamesChecker getChannelNamesChecker()
      Checks that each image provides a consistent set of channels, and that they have the same RGB-state.
    • getGrouper

      public Optional<InputGrouper> getGrouper()
      How to group the inputs.