package affectors; import main.Node; import main.Globals; /** A relic Affector. Now replaced by NoChangeAff. */ public class Formula1Aff extends Affector { static final String desc = "Lock a Node at its present value"; static final String [] nodeDescriptions = {"Target node"}; public Formula1Aff() {} protected void setLabelsAndTypes() { setDescriptions(this.desc, nodeDescriptions, null); this.Type[GUI_CAPABLE] = 1; this.Type[CERTIFICATION] = Affector.RETURNS_DERIV; this.Type[MATHTYPE] = Affector.CC; this.Type[TERMTYPE] = Affector.CONVERSION; } public void setParameterNumbers(int [] param_nums) {} // no parameters public float getValue(Node which_node) { return 0.0f; } }