JaRMoS  1.1
Java Reduced Model Simulations
 All Classes Namespaces Files Functions Variables Enumerator Groups Pages
CompiledInputFunctions.java
Go to the documentation of this file.
1 package jarmos.app;
2 
3 import java.io.File;
4 import java.lang.reflect.Method;
5 
7 import dalvik.system.DexClassLoader;
8 
17 public class CompiledInputFunctions implements IInputFunctions {
18 
19  private Method numIn;
20  private Class<?> cl;
21 
22  public CompiledInputFunctions(String filename) {
23  File f = new File(filename);
24 
25  DexClassLoader dl = new DexClassLoader(f.getName(), f.getAbsolutePath(), null,
26  ClassLoader.getSystemClassLoader());
27  }
28 
29  /* (non-Javadoc)
30  * @see kermor.IInputFunctions#getNumFunctions()
31  */
32  @Override
33  public int getNumFunctions() {
34  return 0;
35  }
36 
37  /* (non-Javadoc)
38  * @see kermor.IInputFunctions#evaluate(double, int)
39  */
40  @Override
41  public double[] evaluate(double t, int idx) {
42  return null;
43  }
44 
45 }
Interface for dynamical system input functions .
Input functions implementation for loading inputs from compiled dex jarfiles.
double[] evaluate(double t, int idx)