public class FunctionBehaviorParameter extends ParameterList implements java.io.Serializable
Constructor and Description |
---|
FunctionBehaviorParameter(Parameter[] params,
java.lang.String name,
int version,
float duration,
java.util.Map<java.lang.String,IFunction> jointFunctions) |
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,IFunction> |
getJoints() |
java.lang.String |
getName() |
float |
getPeriod() |
int |
getVersion() |
static FunctionBehaviorParameter |
readBehaviorFile(Parameter[] params,
java.io.BufferedReader in)
Create a new
FunctionBehaviorParameter instance from the given
input reader. |
static FunctionBehaviorParameter |
readBehaviorFile(Parameter[] params,
java.io.File file)
Create a new
FunctionBehaviorParameter instance from the given
behavior file. |
static FunctionBehaviorParameter |
readBehaviorFile(Parameter[] params,
java.lang.String fileName)
Create a new
FunctionBehaviorParameter instance from the given
behavior file. |
static FunctionBehaviorParameter |
readBehaviorFileNoEx(Parameter[] params,
java.io.File file)
Create a new
FunctionBehaviorParameter instance from the given
behavior file without throwing Exceptions. |
static void |
writeBehaviorFile(java.io.File file,
FunctionBehaviorParameter parameter)
Write a function-behavior-file with the given
FunctionBehaviorParameter . |
static void |
writeBehaviorFile(java.io.File file,
int version,
java.lang.String behaviorName,
float duration,
java.util.Map<java.lang.String,IFunction> jointFunctions)
Write a function-behavior-file with the given information.
|
void |
writeToFile() |
void |
writeToFile(java.lang.String filename)
Writes a function motor file
|
getNoOfParameters, getParameters, getParameterValues, getParamsString, getValue, readFromFile, setValue, toString
public void writeToFile(java.lang.String filename)
writeToFile
in interface IParameterList
writeToFile
in class ParameterList
filename
- the name to use as filenamepublic void writeToFile()
public java.util.Map<java.lang.String,IFunction> getJoints()
public int getVersion()
public java.lang.String getName()
public float getPeriod()
public static FunctionBehaviorParameter readBehaviorFile(Parameter[] params, java.lang.String fileName) throws java.io.FileNotFoundException, java.io.IOException
FunctionBehaviorParameter
instance from the given
behavior file.file
- - the file to readFunctionBehaviorParameter
instancejava.io.FileNotFoundException
java.io.IOException
public static FunctionBehaviorParameter readBehaviorFileNoEx(Parameter[] params, java.io.File file)
FunctionBehaviorParameter
instance from the given
behavior file without throwing Exceptions.file
- - the file to readFunctionBehaviorParameter
instancepublic static FunctionBehaviorParameter readBehaviorFile(Parameter[] params, java.io.File file) throws java.io.FileNotFoundException, java.io.IOException
FunctionBehaviorParameter
instance from the given
behavior file.file
- - the file to readFunctionBehaviorParameter
instancejava.io.FileNotFoundException
java.io.IOException
public static FunctionBehaviorParameter readBehaviorFile(Parameter[] params, java.io.BufferedReader in) throws java.io.IOException
FunctionBehaviorParameter
instance from the given
input reader.in
- - an buffered reader instanceFunctionBehaviorParameter
instancejava.io.IOException
public static void writeBehaviorFile(java.io.File file, FunctionBehaviorParameter parameter) throws java.io.IOException
FunctionBehaviorParameter
.file
- - the file to write toparameter
- - the parameter which should be written to the filejava.io.IOException
public static void writeBehaviorFile(java.io.File file, int version, java.lang.String behaviorName, float duration, java.util.Map<java.lang.String,IFunction> jointFunctions) throws java.io.IOException
file
- - the file to write toversion
- - the format versionbehaviorName
- - the name of the behaviorduration
- - the duration of the behaviorjointFunctions
- - the joint functions of this behaviorsjava.io.IOException