cz.cuni.amis.pogamut.sposh.elements
Class Arguments.ValueArgument

Package class diagram package Arguments.ValueArgument
java.lang.Object
  extended by cz.cuni.amis.pogamut.sposh.elements.Arguments.Argument
      extended by cz.cuni.amis.pogamut.sposh.elements.Arguments.ValueArgument
Enclosing class:
Arguments

protected static final class Arguments.ValueArgument
extends Arguments.Argument

This argument is a static value, neverchanging, e.g. $degrees=5 or $color="red"


Constructor Summary
protected Arguments.ValueArgument(int sequenceNumber, Object value)
          Create a value argument that represents fixed value.
protected Arguments.ValueArgument(String parameterName, Object value)
           
 
Method Summary
protected  Arguments.ValueArgument clone()
           
 String getParameterVariable()
          Is value of this parameter retrieved from variable or value?
 Object getValue()
          Retrieve value of parameter.
 String toString()
           
 
Methods inherited from class cz.cuni.amis.pogamut.sposh.elements.Arguments.Argument
createValueArgument, createVariableArgument, getName, getParameterName
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Arguments.ValueArgument

protected Arguments.ValueArgument(int sequenceNumber,
                                  Object value)
Create a value argument that represents fixed value.

Sequence number is used as name of this argument. Since normal variables starts with $, it won't mix.

Parameters:
sequenceNumber - number of this argument in sequence of all parameters. Starting from 0.
value - value of parameter.

Arguments.ValueArgument

protected Arguments.ValueArgument(String parameterName,
                                  Object value)
Method Detail

getValue

public Object getValue()
Description copied from class: Arguments.Argument
Retrieve value of parameter.

Specified by:
getValue in class Arguments.Argument
Returns:

getParameterVariable

public String getParameterVariable()
Description copied from class: Arguments.Argument
Is value of this parameter retrieved from variable or value?

Specified by:
getParameterVariable in class Arguments.Argument
Returns:
null if this is a value, string with name of parameter variable else

toString

public String toString()
Specified by:
toString in class Arguments.Argument

clone

protected Arguments.ValueArgument clone()
Specified by:
clone in class Arguments.Argument


Copyright © 2014 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.