net.sourceforge.cilib.entity.operators
Class CompositeOperator

java.lang.Object
  extended by net.sourceforge.cilib.entity.operators.CompositeOperator
All Implemented Interfaces:
Serializable, Operator, Cloneable

public class CompositeOperator
extends Object
implements Operator

Create a composte list of Operator instances.

See Also:
Serialized Form

Constructor Summary
CompositeOperator()
          Create an new instance and initialize the internal operator list.
CompositeOperator(CompositeOperator copy)
          Copy constructor.
 
Method Summary
 void add(Operator operator)
          Add an operator to the composite.
 void clear()
          Clear the composite.
 CompositeOperator getClone()
          Create a cloned copy of the current object and return it.
 void performOperation(TopologyHolder holder)
          Perform the operator operation given the current TopologyHolder.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompositeOperator

public CompositeOperator()
Create an new instance and initialize the internal operator list.


CompositeOperator

public CompositeOperator(CompositeOperator copy)
Copy constructor. Create a copy of the provided instance.

Parameters:
copy - The instance to copy.
Method Detail

getClone

public CompositeOperator getClone()
Create a cloned copy of the current object and return it. In general the created copy will be a deep copy of the provided instance. As a result this operation an be quite expensive if used incorrectly.

Specified by:
getClone in interface Operator
Specified by:
getClone in interface Cloneable
Returns:
An exact clone of the current object instance.
See Also:
Object.clone()

performOperation

public void performOperation(TopologyHolder holder)
Perform the operator operation given the current TopologyHolder.

Specified by:
performOperation in interface Operator
Parameters:
holder - The TopologyHolder representing the required Topology instances.

add

public void add(Operator operator)
Add an operator to the composite.

Parameters:
operator - The instance to add.

clear

public void clear()
Clear the composite.



Copyright © 2009 CIRG. All Rights Reserved.