de.unihalle.informatik.MiToBo.core.dataconverter
Class MTBImageConverter

java.lang.Object
  extended by de.unihalle.informatik.Alida.operator.ALDOperator
      extended by de.unihalle.informatik.MiToBo.core.dataconverter.MTBImageConverter
All Implemented Interfaces:
de.unihalle.informatik.Alida.dataconverter.ALDDataConverter, de.unihalle.informatik.Alida.datatypes.ALDConfigurationValidator, de.unihalle.informatik.Alida.operator.events.ALDOperatorExecutionProgressEventListener, EventListener

@ALDDataConverterProvider
public class MTBImageConverter
extends de.unihalle.informatik.Alida.operator.ALDOperator
implements de.unihalle.informatik.Alida.dataconverter.ALDDataConverter

Convert a MTBImage to any other image and any image type to a MTBImage. Otherwise we refuse to convert a MTBImageRGB to another type or vice verse a non MTBImageRGB to a MTBImageRGB

Author:
posch

Nested Class Summary
 
Nested classes/interfaces inherited from class de.unihalle.informatik.Alida.operator.ALDOperator
de.unihalle.informatik.Alida.operator.ALDOperator.HidingMode
 
Field Summary
 
Fields inherited from class de.unihalle.informatik.Alida.operator.ALDOperator
completeDAG, name, operatorExecutionEventlistenerList, portHashAccess, verbose, versionProvider
 
Fields inherited from interface de.unihalle.informatik.Alida.dataconverter.ALDDataConverter
providesMethodName
 
Constructor Summary
MTBImageConverter()
           
 
Method Summary
 Object convert(Object sourceObject, Type[] sourceTypes, Class<?> targetClass, Type[] targetTypes)
           
protected  void operate()
           
 Collection<de.unihalle.informatik.Alida.dataconverter.ALDDataConverterManager.ALDSourceTargetClassPair> providedClasses()
           
 boolean supportConversion(Class<?> sourceClass, Type[] sourceTypes, Class<?> targetClass, Type[] targetTypes)
           
 
Methods inherited from class de.unihalle.informatik.Alida.operator.ALDOperator
addOperatorExecutionProgressEventListener, fieldContained, fireOperatorExecutionProgressEvent, getALDPortHashAccessKey, getConstructionMode, getHidingMode, getInInoutNames, getInInoutNames, getInNames, getInOutNames, getMissingRequiredInputs, getName, getNumParameters, getOutInoutNames, getOutNames, getParameter, getParameterDescriptor, getParameterNames, getSupplementalNames, getVerbose, getVersion, handleOperatorExecutionProgressEvent, isConfigured, print, print, print, printInterface, printInterface, readHistory, readResolve, reinitializeParameterDescriptors, removeOperatorExecutionProgressEventListener, runOp, runOp, runOp, setConstructionMode, setHidingMode, setName, setParameter, setVerbose, toStringVerbose, unconfiguredItems, validate, validateCustom, validateGeneric, writeHistory, writeHistory, writeHistory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MTBImageConverter

public MTBImageConverter()
                  throws de.unihalle.informatik.Alida.exceptions.ALDOperatorException
Throws:
de.unihalle.informatik.Alida.exceptions.ALDOperatorException
Method Detail

providedClasses

public Collection<de.unihalle.informatik.Alida.dataconverter.ALDDataConverterManager.ALDSourceTargetClassPair> providedClasses()
Specified by:
providedClasses in interface de.unihalle.informatik.Alida.dataconverter.ALDDataConverter

supportConversion

public boolean supportConversion(Class<?> sourceClass,
                                 Type[] sourceTypes,
                                 Class<?> targetClass,
                                 Type[] targetTypes)
Specified by:
supportConversion in interface de.unihalle.informatik.Alida.dataconverter.ALDDataConverter

convert

public Object convert(Object sourceObject,
                      Type[] sourceTypes,
                      Class<?> targetClass,
                      Type[] targetTypes)
               throws de.unihalle.informatik.Alida.exceptions.ALDDataConverterException
Specified by:
convert in interface de.unihalle.informatik.Alida.dataconverter.ALDDataConverter
Throws:
de.unihalle.informatik.Alida.exceptions.ALDDataConverterException

operate

protected void operate()
                throws de.unihalle.informatik.Alida.exceptions.ALDOperatorException,
                       de.unihalle.informatik.Alida.exceptions.ALDProcessingDAGException
Specified by:
operate in class de.unihalle.informatik.Alida.operator.ALDOperator
Throws:
de.unihalle.informatik.Alida.exceptions.ALDOperatorException
de.unihalle.informatik.Alida.exceptions.ALDProcessingDAGException


Copyright © 2010–2015 Martin Luther University Halle-Wittenberg. All rights reserved.