Ejemplo n.º 1
0
 public Context(Context context, Agent agent) {
   job = context.job;
   activation = context.activation;
   letBindings = context.letBindings;
   myself = context.agent;
   agentBit = agent.agentBit();
 }
Ejemplo n.º 2
0
 // This constructor is used when a Context spawns a Job which
 // in turn spawns Contexts, such as with _ask. - ST 6/12/06
 public Context(Job job, Agent agent, int ip, Activation activation) {
   this.job = job;
   this.agent = agent;
   if (agent != null) {
     agentBit = agent.agentBit();
   }
   this.ip = ip;
   this.activation = activation;
 }