Skip to content

Instantly share code, notes, and snippets.

@miho
Created November 19, 2016 22:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save miho/7631af15fba57925c811b537b27f59e7 to your computer and use it in GitHub Desktop.
Save miho/7631af15fba57925c811b537b27f59e7 to your computer and use it in GitHub Desktop.
Demonstrates how to develop a vector input component
package eu.mihosoft.vrl.user;
@ComponentInfo(name="VectorInput", category="ODE")
public class VectorInput implements java.io.Serializable {
private static final long serialVersionUID=1L;
// add your code here
@MethodInfo(name="", valueName="v", valueStyle="default", valueOptions="", hide=false)
public double[] vector(@ParamInfo(name="", style="array", options="") Double[] v) {
return v
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment