de.interactive_instruments.ShapeChange
Class TransformerConfiguration

java.lang.Object
  extended by de.interactive_instruments.ShapeChange.ProcessConfiguration
      extended by de.interactive_instruments.ShapeChange.TransformerConfiguration

public class TransformerConfiguration
extends ProcessConfiguration

Configuration of a transformer.

Author:
echterhoff

Constructor Summary
TransformerConfiguration(String id, String className, ProcessMode processMode, Map<String,String> parameters, Map<String,ProcessRuleSet> ruleSets, List<ProcessMapEntry> mapEntries, List<TaggedValueConfigurationEntry> taggedValues, String inputId)
          Creates a TransformerConfiguration.
 
Method Summary
 List<TargetConfiguration> getAllTargets()
           
 String getId()
           
 String getInputId()
           
 ProcessMapEntry getMappingForType(String rule, String type)
           
 List<TaggedValueConfigurationEntry> getTaggedValues()
           
 boolean hasMappingForType(String rule, String type)
           
 boolean hasTaggedValues()
           
 String toString()
           
 
Methods inherited from class de.interactive_instruments.ShapeChange.ProcessConfiguration
addTarget, addTransformer, getClassName, getGmlVersion, getListParameterValue, getMapEntries, getMapEntry, getParameters, getParameterValue, getParameterValues, getProcessMode, getRuleSets, getTargets, getTransformers, hasParameter, setTargets, setTransformers
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TransformerConfiguration

public TransformerConfiguration(String id,
                                String className,
                                ProcessMode processMode,
                                Map<String,String> parameters,
                                Map<String,ProcessRuleSet> ruleSets,
                                List<ProcessMapEntry> mapEntries,
                                List<TaggedValueConfigurationEntry> taggedValues,
                                String inputId)
Creates a TransformerConfiguration.

Parameters:
id - Transformer identifier
className - The fully qualified name of the class implementing the process.
processMode - The execution mode of the process.
parameters - The process parameters. null if no parameters were declared in the configuration.
ruleSets - The rule sets declared for the process. null if no rule sets were declared in the configuration.
mapEntries - The map entries for the process. null if no map entries were declared in the configuration.
taggedValues - The tagged values defined for the transformer. null if no tagged values were declared in the configuration.
inputId - identifier of the input for this transformer
Method Detail

getId

public String getId()
Returns:
The identifier of the process.

getInputId

public String getInputId()
Returns:
The identifier of the input for this transformer, for example referencing the global model input.

toString

public String toString()
Overrides:
toString in class ProcessConfiguration

getMappingForType

public ProcessMapEntry getMappingForType(String rule,
                                         String type)

hasMappingForType

public boolean hasMappingForType(String rule,
                                 String type)
Parameters:
rule - Name of the rule that the type mapping must apply to, can be null (then any type mapping with the given name is fine)
type - Value of the type in a ProcessMapEntry
Returns:

hasTaggedValues

public boolean hasTaggedValues()

getTaggedValues

public List<TaggedValueConfigurationEntry> getTaggedValues()

getAllTargets

public List<TargetConfiguration> getAllTargets()
Returns:
list of targets that this transformer and all other transformers in the tree (where this transformer is the root) have.


Copyright © 2015. All rights reserved.