Class Effectus<O,V>

java.lang.Object
tsl2.nano.cursus.Mutatio<O,V>
tsl2.nano.cursus.effectus.Effectus<O,V>
Type Parameters:
CONTENT -
All Implemented Interfaces:
IChange, Serializable
Direct Known Subclasses:
IncEffectus, RuleEffectus

public abstract class Effectus<O,V> extends Mutatio<O,V>
an effect can be created/processed after a change was made.
Author:
Tom
See Also:
  • Field Details

    • fixed

      protected boolean fixed
      on activation, the changes will be stored into the content - to be reused and not recalculated
  • Constructor Details

    • Effectus

      public Effectus()
    • Effectus

      public Effectus(Res<O,V> res, boolean fixed)
  • Method Details

    • evaluateNewValue

      protected abstract V evaluateNewValue()
      Returns:
      new calculated value. to evaluate the new value, the object/res should given to the calculating function.
    • getNew

      public V getNew()
      Specified by:
      getNew in interface IChange
      Overrides:
      getNew in class Mutatio<O,V>
    • isFixed

      public boolean isFixed()