java.lang.Object
com.marginallyclever.nodegraphcore.Node
com.marginallyclever.donatello.nodes.Calculate
public class Calculate
extends com.marginallyclever.nodegraphcore.Node
-
Field Summary
Fields inherited from class com.marginallyclever.nodegraphcore.Node
TITLE_HEIGHT
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.marginallyclever.nodegraphcore.Node
countReceivingConnections, getComplete, getDownstreamNodes, getInPosition, getLabel, getName, getNumPorts, getOutPosition, getPort, getPort, getPortIndex, getPorts, getRectangle, getUniqueID, isDirty, moveRelative, reset, setComplete, setInputsClean, setLabel, setPosition, setRectangle, setUniqueID, toJSON, toString, updateBounds
-
Constructor Details
-
Calculate
public Calculate()
-
-
Method Details
-
update
public void update()- Specified by:
update
in classcom.marginallyclever.nodegraphcore.Node
-
evaluate
-
fromJSON
public void fromJSON(org.json.JSONObject jo) throws org.json.JSONException Parse the JSON object into this object. Because the number of inputs may vary, we need to update the number of input ports first and then read in the rest.- Overrides:
fromJSON
in classcom.marginallyclever.nodegraphcore.Node
- Parameters:
jo
- the JSON object to parse- Throws:
org.json.JSONException
- if there is an error parsing the JSON
-