Class MClassBasedElement

Direct Known Subclasses:
MGoal

public class MClassBasedElement extends MProcessableElement
Processable element based on a class.
  • Field Details

    • target

      protected String target
      The target.
    • targetclass

      protected Class<?> targetclass
    • lastcl

      protected ClassLoader lastcl
  • Constructor Details

    • MClassBasedElement

      public MClassBasedElement()
      Bean Constructor.
    • MClassBasedElement

      public MClassBasedElement(String name, String target, boolean posttoall, boolean rebuild, boolean randomselection, ExcludeMode excludemode)
      Create a new belief.
  • Method Details

    • getTarget

      public String getTarget()
      Get the target.
      Returns:
      The target.
    • getTargetClass

      public Class<?> getTargetClass(ClassLoader cl)
      Get the target.
      Returns:
      The target.
    • setTarget

      public void setTarget(String target)
      Set the target.
      Parameters:
      target - The target to set.
    • equals

      public boolean equals(Object other)
      Check if other object is equal.
      Overrides:
      equals in class MElement
      Returns:
      True, if equal.
    • hashCode

      public int hashCode()
      Get the hashcode.
      Overrides:
      hashCode in class MElement
      Returns:
      The hash code.