org.graphstream.algorithm
Class Parameter.ParametersProcessor

java.lang.Object
  extended by org.graphstream.algorithm.Parameter.ParametersProcessor
Enclosing class:
Parameter

public static class Parameter.ParametersProcessor
extends Object

Defines the object which will process parameters.


Constructor Summary
Parameter.ParametersProcessor(Object obj, Parameter... parameters)
           
 
Method Summary
 void process()
          Start the processing part.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Parameter.ParametersProcessor

public Parameter.ParametersProcessor(Object obj,
                                     Parameter... parameters)
Method Detail

process

public void process()
             throws InvalidParameterException,
                    MissingParameterException
Start the processing part. First, this checks is all non-optional parameters will receive a value, else a MissingParameterException is thrown. Then, values are assigned to the attribute ( setValue(DefineParameter, Field, Object) ). Finally, the method checks is no parameter remaining. In this case, an InvalidParameterException is thrown.

Throws:
InvalidParameterException
MissingParameterException


Copyright © 2012. All Rights Reserved.