All Downloads are FREE. Search and download functionalities are using the official Maven repository.

scenarioTWO.data.depTime__Tuple Maven / Gradle / Ivy

The newest version!


/*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
  This code is generated by JAC version 5.6 by
  Agent Oriented Software. http://www.agent-software.com.au

    DO NOT ALTER THIS CODE AND DO NOT REMOVE THIS COMMENT
 *=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*/
package scenarioTWO.data;
import aos.jack.jak.beliefset.ClosedWorld;
import aos.jack.jak.beliefset.Tuple;

/** Automatically generated class from 'null'. */
public class depTime__Tuple extends aos.jack.jak.beliefset.Tuple implements aos.apib.Base, java.io.Serializable {

  public static final __SS streamer = new __SS();

  /** Automatically generated method. */
  public aos.apib.StreamerSupport getStreamer()
    { return streamer; }

  /** Automatically generated method. */
  public int hashCode() {
     streamer.setup();
     return aos.apib.Util.hashCode(this);
  }

  /** Automatically generated method. */
  public boolean equals(Object o) {
     if (!(o instanceof aos.apib.Base)) return false;
     return aos.apib.Util.equals(this, (aos.apib.Base)o);
  }

  public String	agentID;
  public double	deptime;


public depTime__Tuple(boolean v)
{
    super();
    isFree = v;
}



public java.lang.String name()
{
    return "depTime__Tuple";
}



public java.lang.String toString()
{
    java.lang.StringBuffer __s = new java.lang.StringBuffer();
    __s.append(agentID);
    __s.append(":");
    __s.append(deptime);
    return __s.toString();
}



public int hash(int __i)
{
    int __r = 0;
    switch (__i) {
        case 0: 
        {
            __r ^= (agentID.hashCode() & (~(1 << 31)));
            return __r;
        }
    }
    return 0;
}


  /** Automatically generated constructor. */
  public depTime__Tuple() {
    streamer.setup();
    if (!getStreamer().initialized) return;
    __init__depTime__Tuple();
  }

  /** Automatically generated method. */
  void __init__depTime__Tuple() {
	agentID = null;
	deptime = (double) 0;

  }

  /** Automatically generated JACOB streamer class */
  static class __SS extends aos.apib.StreamerSupport {
    depTime__Tuple __def = null;

    /** Return a static instance. */

    public aos.apib.Base getDefaultInstance() { return __def; }

    private String[] fn = {
    ":agentID",
    ":deptime",
    };

    private String[] dn = {
    ":agentID",
    ":deptime",
    };

    private boolean[] ftr = {
    false,
    false,
    };

    private boolean[] fst = {
    false,
    false,
    };

    private boolean[] fhd = {
    false,
    false,
    };

    private int[] ft = {
    11,
    7,
    };

    private aos.apib.EnumInfo[] fe = {
	null,
	null,
    };

    private String[] cm = {
    null,
    null,
    };


    private aos.apib.StreamerSupport[][] al = {
	null,
	null,
    };

    private String[] fsubt = {
    null, 
    null, 
    };

    /** Construct the streamer. */
    public __SS() {
      __type = "depTime__Tuple";
      __icon = null;
      __comment = "Auto generated by the JACK Agents Compiler";
      __field_names = fn;
      __display_names = dn;
      __field_types = ft;
      __field_static = fst;
      __field_hidden = fhd;
      __field_transient = ftr;
      __field_subtypes = fsubt;
      __field_comments = cm;
      __enuminfos = fe;
      __allowed = al;
      register(__type, this);
    }

    private boolean setup_done = false;

    /** Initialization. */
    protected void setup() {
      if ( setup_done ) return;

      setup_done = true; 

      __def = (depTime__Tuple)newInstance();
      setStreamedType(__def.getClass());
      baseclasses = findBaseStreamer(__def.getClass());
    }

    /** Initialization. */
    protected void init() {
      setup();
      __def.__init__depTime__Tuple();
    }

    /** JACOB method. */
    public boolean isDummy() { return false; }

    /** JACOB method. */
    public aos.apib.Base new_instance() {
      return new depTime__Tuple();
    }

    /** JACOB method. */
    public aos.apib.Base[] new_array(int n) {
      return new depTime__Tuple[n];
    }

    /** JACOB class reading method. */
    public boolean read(aos.apib.InStream in, aos.apib.Base o) {
      int i = -1;
      while ((i = in.nextField(i, this)) >= 0) {
        if ( !readField( in, o, i ) ) {
          return false;
        }
      }
      return true;
    }

    /** JACOB method to read fields. */
    public boolean readField(aos.apib.InStream in, aos.apib.Base o,int i) {
      if ( i > __field_names.length )
        return getBaseClassStreamer().readField( in, o, i - __field_names.length - 1 );
      depTime__Tuple v = (depTime__Tuple)o;
      switch (i) {
      case 0:
	v.agentID = in.getString(true);
	break;
   case 1:
	v.deptime = in.getDouble();
	break;
      case 2:
        in.readBaseClasses(o, this, 0);
        break;
      default:
        if (i >= 0 && i <= 2) break;
        in.error("Reader for depTime__Tuple: illegal field number:"+i);
        return false;
      }
      return true;
    }

    /** JACOB class writing method. */
    public boolean write(aos.apib.OutStream out, aos.apib.Base o) {
      depTime__Tuple v = (depTime__Tuple)o;
      int i = -1;
      while ((i = out.nextField(i, this)) >= 0) {
        switch (i) {
      case 0:
	out.putString(v.agentID, i, __def.agentID, this);
	break;
   case 1:
	out.putDouble(v.deptime, i, __def.deptime, this);
	break;
        case 2:
          out.writeBaseClasses(o, this);
          break;
        default:
          if (i >= 0 && i <= 2) break;
          out.error("Writer for depTime__Tuple: illegal field number:"+i);
          return false;
        }
      }
      return true;
    }

    /** JACOB method. */
    public boolean isDefault(aos.apib.Base o) {
      depTime__Tuple v = (depTime__Tuple)o;

	if (v.agentID != __def.agentID) {
	   if (v.agentID == null) return false;
	   if (__def.agentID == null) return false;
	   if (!v.agentID.equals(__def.agentID)) return false;
	}
	if (v.deptime != __def.deptime) return false;
      if (baseclasses != null && baseclasses.length == 1)
        return baseclasses[0].isDefault(o);
      return true;
    }

    /** JACOB method. */
    public void findNonApib(aos.apib.OutStream out, aos.apib.Base o) {
     depTime__Tuple v = (depTime__Tuple)o;

      if (baseclasses != null && baseclasses.length == 1)
        baseclasses[0].findNonApib(out, o);
    }
  }

}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy