cc.redberry.core.context
Class ContextSettings
- java.lang.Object
-
- cc.redberry.core.context.ContextSettings
-
-
Constructor Summary
Constructors Constructor and Description ContextSettings(OutputFormat defaultOutputFormat, java.lang.String kronecker)Creates context settings with specified default output format and Kronecker delta name.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidaddMetricIndexType(IndexType type)Set specified index type to be a metric type.IndexConverterManagergetConverterManager()Returns index converter managerOutputFormatgetDefaultOutputFormat()Returns the default output formatjava.lang.StringgetKronecker()Returns string representation of Kronecker tensor name.java.lang.StringgetMetricName()Returns string representation of metric tensor name.java.lang.LonggetNameManagerSeed()Returns seed of name managerParsergetParser()Returns parservoidremoveMetricIndexType(IndexType type)Set specified index type to be a non metric.voidsetConverterManager(IndexConverterManager converterManager)Sets index converter managervoidsetDefaultOutputFormat(OutputFormat defaultOutputFormat)Sets the default output format.voidsetKronecker(java.lang.String kronecker)Sets string representation of Kronecker tensor name.voidsetMetricName(java.lang.String metricName)Sets string representation of metric tensor name.voidsetNameManagerSeed(java.lang.Long nameManagerSeed)Sets seed of name managervoidsetParser(Parser parser)Sets parser
-
-
-
Constructor Detail
-
ContextSettings
public ContextSettings(OutputFormat defaultOutputFormat, java.lang.String kronecker)
Creates context settings with specified default output format and Kronecker delta name.- Parameters:
defaultOutputFormat- output formatkronecker- string name of Kronecker tensor
-
-
Method Detail
-
removeMetricIndexType
public void removeMetricIndexType(IndexType type)
Set specified index type to be a non metric.- Parameters:
type- index type
-
addMetricIndexType
public void addMetricIndexType(IndexType type)
Set specified index type to be a metric type.- Parameters:
type- index type
-
getDefaultOutputFormat
public OutputFormat getDefaultOutputFormat()
Returns the default output format- Returns:
- the default output format
-
setDefaultOutputFormat
public void setDefaultOutputFormat(OutputFormat defaultOutputFormat)
Sets the default output format.- Parameters:
defaultOutputFormat- output format
-
getKronecker
public java.lang.String getKronecker()
Returns string representation of Kronecker tensor name.- Returns:
- string representation of Kronecker tensor name
-
setKronecker
public void setKronecker(java.lang.String kronecker)
Sets string representation of Kronecker tensor name.- Parameters:
kronecker- string name of Kronecker tensor
-
getMetricName
public java.lang.String getMetricName()
Returns string representation of metric tensor name.- Returns:
- string representation of metric tensor name
-
setMetricName
public void setMetricName(java.lang.String metricName)
Sets string representation of metric tensor name.
-
getNameManagerSeed
public java.lang.Long getNameManagerSeed()
Returns seed of name manager- Returns:
- seed of name manager
-
setNameManagerSeed
public void setNameManagerSeed(java.lang.Long nameManagerSeed)
Sets seed of name manager
-
getConverterManager
public IndexConverterManager getConverterManager()
Returns index converter manager- Returns:
- index converter manager
-
setConverterManager
public void setConverterManager(IndexConverterManager converterManager)
Sets index converter manager
-
setParser
public void setParser(Parser parser)
Sets parser
-
getParser
public Parser getParser()
Returns parser- Returns:
- parser
-
-
DataMelt 3.0 © DataMelt by jWork.ORG