Class ForLoopToStorageForLoopTransfer


  • public class ForLoopToStorageForLoopTransfer
    extends AbstractOptionTransfer
    Transfers options between ForLoop and StorageForLoop objects as vice versa.
    Version:
    $Revision$
    Author:
    FracPete (fracpete at waikato dot ac dot nz)
    • Constructor Detail

      • ForLoopToStorageForLoopTransfer

        public ForLoopToStorageForLoopTransfer()
    • Method Detail

      • handles

        public boolean handles​(Object source,
                               Object target)
        Returns whether it can handle the transfer.
        Specified by:
        handles in class AbstractOptionTransfer
        Parameters:
        source - the source object
        target - the target object
        Returns:
        true if options can be transferred by this class
      • doTransfer

        protected String doTransfer​(Object source,
                                    Object target)
        Does the actual transfer of options.
        Specified by:
        doTransfer in class AbstractOptionTransfer
        Parameters:
        source - the source object
        target - the target object
        Returns:
        null if successful, otherwise error message