MUM.initService
Class PlanVisitorAgent

java.lang.Object
  extended bySOMA.agent.Agent
      extended byMUM.initService.PlanVisitorAgent
All Implemented Interfaces:
java.util.EventListener, IPlanVisitor, ISwDownloadedListener, java.io.Serializable

public class PlanVisitorAgent
extends Agent
implements IPlanVisitor, ISwDownloadedListener

This class implements the agent that visits the generic plan and istantiate and initialize the needed SW along the path from the client to the server

See Also:
Serialized Form

Field Summary
 
Fields inherited from class SOMA.agent.Agent
agentSystem, mailbox, start, traceable
 
Constructor Summary
PlanVisitorAgent()
           
 
Method Summary
 void downloadFinished(DownloadFinishedEvent ev)
          Called when a software download terminated successfully
 void downloadProblems(DownloadProblemsEvent ev)
          Called when a software download terminated with problems
 void putArgument(java.lang.Object args)
          set the initial state of the agent
 void run()
          Metodo mandato in esecuzione all'avvio di un agente.
 void visitMultiplePlan(IMultiplePlan p)
          Metodo per l'interpretazione di un plan multiplo
 void visitNomadicClientPlan(INomadicClientPlan inNomadicPlan)
          Metodo per l'interpretazione di un plan per muovere il client a fronte del movimento nomadico di un utente.
 void visitSinglePlan(ISinglePlan p)
          Methods for the visit of the Plan
 
Methods inherited from class SOMA.agent.Agent
getID, go, idle, setID, setTraceable, signatureCode, signatureState, stop, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PlanVisitorAgent

public PlanVisitorAgent()
Method Detail

putArgument

public void putArgument(java.lang.Object args)
set the initial state of the agent

Overrides:
putArgument in class Agent
Parameters:
args - Un oggetto contenente informazioni di inizializzazione. Ovviamente l'oggetto puņ anche contenere una struttura dati complessa.

run

public void run()
Description copied from class: Agent
Metodo mandato in esecuzione all'avvio di un agente.
Questo metodo astratto va ridefinito nell'implementazione di ogni agente.

Specified by:
run in class Agent

visitSinglePlan

public void visitSinglePlan(ISinglePlan p)
Methods for the visit of the Plan

Specified by:
visitSinglePlan in interface IPlanVisitor

visitMultiplePlan

public void visitMultiplePlan(IMultiplePlan p)
Metodo per l'interpretazione di un plan multiplo

Specified by:
visitMultiplePlan in interface IPlanVisitor

visitNomadicClientPlan

public void visitNomadicClientPlan(INomadicClientPlan inNomadicPlan)
Metodo per l'interpretazione di un plan per muovere il client a fronte del movimento nomadico di un utente.

Specified by:
visitNomadicClientPlan in interface IPlanVisitor

downloadFinished

public void downloadFinished(DownloadFinishedEvent ev)
Called when a software download terminated successfully

Specified by:
downloadFinished in interface ISwDownloadedListener

downloadProblems

public void downloadProblems(DownloadProblemsEvent ev)
Called when a software download terminated with problems

Specified by:
downloadProblems in interface ISwDownloadedListener


Copyright © 2004 Luca Foschini