Class GenericMoveAgentBuilder
java.lang.Object
org.zkoss.zats.mimic.impl.operation.GenericMoveAgentBuilder
- All Implemented Interfaces:
OperationAgentBuilder<ComponentAgent,MoveAgent>
public class GenericMoveAgentBuilder
extends Object
implements OperationAgentBuilder<ComponentAgent,MoveAgent>
The generic builder of move agent.
- Author:
- pao
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetOperation(ComponentAgent agent) This method create and return a specific implementation ofOperationAgentobject for specified OperationAgent class.Provide class information for registration.
-
Constructor Details
-
GenericMoveAgentBuilder
public GenericMoveAgentBuilder()
-
-
Method Details
-
getOperationClass
Description copied from interface:OperationAgentBuilderProvide class information for registration.- Specified by:
getOperationClassin interfaceOperationAgentBuilder<ComponentAgent,MoveAgent> - Returns:
- a sub-class of
OperationAgent
-
getOperation
Description copied from interface:OperationAgentBuilderThis method create and return a specific implementation ofOperationAgentobject for specified OperationAgent class. Similar to factory pattern.- Specified by:
getOperationin interfaceOperationAgentBuilder<ComponentAgent,MoveAgent> - Returns:
- the operation agent
-