public class CustomUpdate extends java.lang.Object implements NetworkUpdateAction
Constructor and Description |
---|
CustomUpdate(Network network,
java.io.File file)
Create a new custom update action from a file containing the custom
script.
|
CustomUpdate(Network network,
java.lang.String script)
Create a new custom update action.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDescription()
Provide a String description of this update method.
|
java.lang.String |
getLongDescription()
Provide a longer description for tooltips, etc.
|
java.lang.String |
getScriptString() |
void |
init()
Initialize the interpreter.
|
void |
invoke()
Invoke this action.
|
void |
setScriptString(java.lang.String scriptString) |
public CustomUpdate(Network network, java.lang.String script)
network
- network to updatescript
- script to use in invoking the update actionpublic CustomUpdate(Network network, java.io.File file)
network
- network to updatefile
- file containing custom codepublic void init()
public void invoke()
NetworkUpdateAction
invoke
in interface NetworkUpdateAction
public java.lang.String getDescription()
NetworkUpdateAction
getDescription
in interface NetworkUpdateAction
public java.lang.String getLongDescription()
NetworkUpdateAction
getLongDescription
in interface NetworkUpdateAction
public java.lang.String getScriptString()
public void setScriptString(java.lang.String scriptString)
scriptString
- the scriptString to set