Package adams.core.optiontransfer
Class AutomatableInteractiveActorTransfer
- java.lang.Object
-
- adams.core.optiontransfer.AbstractOptionTransfer
-
- adams.core.optiontransfer.AutomatableInteractiveActorTransfer
-
public class AutomatableInteractiveActorTransfer extends AbstractOptionTransfer
Transfers options betweenAutomatableInteractiveActor
objects.- Author:
- FracPete (fracpete at waikato dot ac dot nz)
-
-
Field Summary
-
Fields inherited from class adams.core.optiontransfer.AbstractOptionTransfer
m_Transfers
-
-
Constructor Summary
Constructors Constructor Description AutomatableInteractiveActorTransfer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
doTransfer(Object source, Object target)
Does the actual transfer of options.boolean
handles(Object source, Object target)
Returns whether it can handle the transfer.-
Methods inherited from class adams.core.optiontransfer.AbstractOptionTransfer
check, getTransfers, transfer, transferVariable, transferVariable
-
-
-
-
Method Detail
-
handles
public boolean handles(Object source, Object target)
Returns whether it can handle the transfer.- Specified by:
handles
in classAbstractOptionTransfer
- Parameters:
source
- the source objecttarget
- 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 classAbstractOptionTransfer
- Parameters:
source
- the source objecttarget
- the target object- Returns:
- null if successful, otherwise error message
-
-