affectors
Class DefinedValuesIndicatorAff

java.lang.Object
  extended byaffectors.Affector
      extended byaffectors.DefinedValuesIndicatorAff
All Implemented Interfaces:
java.lang.Cloneable

public class DefinedValuesIndicatorAff
extends Affector

An artificial Affector which sets nodes to specific values. See DefinedValuesAff for more information. This one only operates according to a second "indicator" node. If the indicator is > 0.5 in a cell, then this affector will change the value of its target node in that cell. If the indicator is < 0.5, this affector does nothing.

Formula
dnodex/dt = 0 | before first_time
dnodex/dt = (second_value - initial_value) / (second_time - first_time) | between first and second times
dnodex/dt = 0 | between second and third times
dnodex/dt = (third_value - second_value) / (fourth_time - third_time) | between third and fourth times
dnodex/dt = 0 | after fourth_time

Parameters

Target [nodex] The Node which this Affector is acting on
Indicator node [nodex] The Node which this Affector is acting on
First time [first_t] See formula above
Second time [second_t] See formula above
Third time [third_t] See formula above
Fourth time [fourth_t] See formula above
Second value [second_v] See formula above
Third value [third_v] See formula above

Usage
&nodex

&DefinedValuesAff nodex indicator_node first_t second_t third_t fourth_t second_v third_v
&endnodex


Field Summary
 
Fields inherited from class affectors.Affector
ADesc, affectorType, CC, CERTIFICATION, CONVERSION, copyNumber, DEGRADATION, FF, firstFreeParam, GG, GUI_CAPABLE, HH, KK, MATHTYPE, NDesc, PDesc, PRODUCTION, RETURNS_DERIV, RETURNS_PARTIALS, TERMTYPE, TT, Type, UNSPECIFIED
 
Constructor Summary
DefinedValuesIndicatorAff()
           
 
Method Summary
 float getValue(Node which_node)
           
protected  void setLabelsAndTypes()
           
 void setParameterNumbers(int[] param_nums)
           
 
Methods inherited from class affectors.Affector
addDefaultParam, Chi, clearStatic, copy_, copy, doesContainTarget, findOrCreateParam, findParam, fixNodes, getNCValue, getNodes, getNumNodes, getNumParameters, getOtherSide, getParameter, getParameter, getParamName, getParamPos, getParamValue, getParamValue, getParamVariationMode, init, isLinearInTarget, Phi, Psi, setContainsTarget, setDescriptions, setParameter, setParamRange, setParamRange, setParamValue, setParamValue, setSide, setSided
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefinedValuesIndicatorAff

public DefinedValuesIndicatorAff()
Method Detail

setLabelsAndTypes

protected void setLabelsAndTypes()
Specified by:
setLabelsAndTypes in class Affector

setParameterNumbers

public void setParameterNumbers(int[] param_nums)
Specified by:
setParameterNumbers in class Affector

getValue

public float getValue(Node which_node)
Overrides:
getValue in class Affector