Class MClassBasedElement

  • Direct Known Subclasses:
    MGoal

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

      • target

        protected java.lang.String target
        The target.
      • targetclass

        protected java.lang.Class<?> targetclass
      • lastcl

        protected java.lang.ClassLoader lastcl
    • Constructor Detail

      • MClassBasedElement

        public MClassBasedElement()
        Bean Constructor.
      • MClassBasedElement

        public MClassBasedElement​(java.lang.String name,
                                  java.lang.String target,
                                  boolean posttoall,
                                  boolean rebuild,
                                  boolean randomselection,
                                  MProcessableElement.ExcludeMode excludemode)
        Create a new belief.
    • Method Detail

      • getTarget

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

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

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

        public boolean equals​(java.lang.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.