Package org.planit.output.adapter
Class OutputAdapter
- java.lang.Object
-
- org.planit.output.adapter.OutputAdapter
-
public class OutputAdapter extends Object
Output Adapter which stores output type adapters for each Output Manager and defines top-level method which apply to all output types- Author:
- gman6028
-
-
Constructor Summary
Constructors Constructor Description OutputAdapter(TrafficAssignment trafficAssignment)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidderegisterOutputTypeAdapter(OutputType outputType)Deregister an output type adapter for a specified output typeStringgetAssignmentClassName()Returns the name of the assignment class being usedprotected StringgetClassName(Object object)Return the name of a Java object class as a short stringStringgetGapFunctionClassName()Return the name of the gap function classOutputTypeAdaptergetOutputTypeAdapter(OutputType outputType)Retrieve an output type adapter for a specified output typeStringgetPhysicalCostClassName()Returns the name of the physical cost classlonggetRunId()Return the id of this assignment runStringgetSmoothingClassName()Return the name of the smoothing classStringgetStopCriterionClassName()Return the name of the stopping criterion classStringgetVirtualCostClassName()Return the name of the virtual cost classvoidregisterOutputTypeAdapter(OutputType outputType, OutputTypeAdapter outputTypeAdapter)Store an output type adapters for a specified output type
-
-
-
Constructor Detail
-
OutputAdapter
public OutputAdapter(TrafficAssignment trafficAssignment)
Constructor- Parameters:
trafficAssignment- TrafficAssignment object which this adapter wraps
-
-
Method Detail
-
getClassName
protected String getClassName(Object object)
Return the name of a Java object class as a short string- Parameters:
object- the Java object- Returns:
- the name of the object
-
getRunId
public long getRunId()
Return the id of this assignment run- Returns:
- id of this assignment run
-
getAssignmentClassName
public String getAssignmentClassName()
Returns the name of the assignment class being used- Returns:
- the assignment class being used
-
getPhysicalCostClassName
public String getPhysicalCostClassName()
Returns the name of the physical cost class- Returns:
- the name of the physical cost class
-
getVirtualCostClassName
public String getVirtualCostClassName()
Return the name of the virtual cost class- Returns:
- the name of the virtual cost class
-
getSmoothingClassName
public String getSmoothingClassName()
Return the name of the smoothing class- Returns:
- the name of the smoothing class
-
getGapFunctionClassName
public String getGapFunctionClassName()
Return the name of the gap function class- Returns:
- the name of the gap function class
-
getStopCriterionClassName
public String getStopCriterionClassName()
Return the name of the stopping criterion class- Returns:
- the name of the stopping criterion class
-
registerOutputTypeAdapter
public void registerOutputTypeAdapter(OutputType outputType, OutputTypeAdapter outputTypeAdapter)
Store an output type adapters for a specified output type- Parameters:
outputType- the specified output typeoutputTypeAdapter- the output type adapter to be stored
-
deregisterOutputTypeAdapter
public void deregisterOutputTypeAdapter(OutputType outputType)
Deregister an output type adapter for a specified output type- Parameters:
outputType- the output type whose adapter is to be deregistered
-
getOutputTypeAdapter
public OutputTypeAdapter getOutputTypeAdapter(OutputType outputType)
Retrieve an output type adapter for a specified output type- Parameters:
outputType- the specified output type- Returns:
- the output type adapter for the specified output type
-
-