Class One

Object
AnchorBean<FromStacks>

public class One extends FromStacks
Selects one specific channel from a set of stacks
Author:
Owen Feehan
  • Constructor Summary

    Constructors
    Constructor
    Description
    One()
     
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    The index of the channel to retrieve from stackName.
    If defined, processing only occurs the stack with this specific name and index.
    selectChannels(ChannelSource source, boolean checkType)
    Takes a stack-collection and extracts a set of references to particular channels (each with a name).
    void
    setChannelIndex(int channelIndex)
    The index of the channel to retrieve from stackName.
    void
    setStackName(String stackName)
    If defined, processing only occurs the stack with this specific name and index.

    Methods inherited from class org.anchoranalysis.bean.AnchorBean

    checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • One

      public One()
  • Method Details

    • selectChannels

      public NamedChannels selectChannels(ChannelSource source, boolean checkType) throws OperationFailedException
      Description copied from class: FromStacks
      Takes a stack-collection and extracts a set of references to particular channels (each with a name).
      Specified by:
      selectChannels in class FromStacks
      Parameters:
      source - the ChannelSource containing the stacks to select from
      checkType - whether to check the type of the channels
      Returns:
      a NamedChannels object containing the selected channels
      Throws:
      OperationFailedException - if the channel selection operation fails
    • getStackName

      public String getStackName()
      If defined, processing only occurs the stack with this specific name and index.

      Otherwise processing occurs on all input stacks.

    • setStackName

      public void setStackName(String stackName)
      If defined, processing only occurs the stack with this specific name and index.

      Otherwise processing occurs on all input stacks.

    • getChannelIndex

      public int getChannelIndex()
      The index of the channel to retrieve from stackName.
    • setChannelIndex

      public void setChannelIndex(int channelIndex)
      The index of the channel to retrieve from stackName.