ibspan.tss.agents.vta.handlers
Class RaccoonTransformer

java.lang.Object
  extended by jade.core.behaviours.Behaviour
      extended by jade.core.behaviours.SimpleBehaviour
          extended by jade.core.behaviours.OneShotBehaviour
              extended by ibspan.tss.messaging.RequestHandler
                  extended by ibspan.tss.agents.vta.handlers.ViewTransformer
                      extended by ibspan.tss.agents.vta.handlers.RaccoonTransformer
All Implemented Interfaces:
Serializable

public class RaccoonTransformer
extends ViewTransformer

This implementation utilizes Raccoon server for formatting view. Raccoon server must be correctly configurated and provide access both via. Internet interface and local directory. Whole process of transforming is realized by transform() method in the following manner:

  1. Received DataModel object is written in the directory Raccoon server provides for storing temporary models.
  2. Raccoon server is called via URL address to transform file with model according to the action name (suggested by ModelConstructor or PersonalModelConstructor) and type of media, users have to access the system.
  3. Eventually temporary file with model is removed and response returned from Raccoon server is put into DataView object and returned.

Author:
Pawel Kaczmarek, Maciej Gawinecki
See Also:
Raccoon, Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class jade.core.behaviours.Behaviour
Behaviour.RunnableChangedEvent
 
Field Summary
 
Fields inherited from class ibspan.tss.agents.vta.handlers.ViewTransformer
myAgent
 
Fields inherited from class jade.core.behaviours.Behaviour
myEvent, NOTIFY_DOWN, NOTIFY_UP, parent, STATE_BLOCKED, STATE_READY, STATE_RUNNING
 
Constructor Summary
RaccoonTransformer(Agent a, DataStore ds, Object requestKey, Object actKey, Object notificationKey)
           
 
Method Summary
protected  DataView transform(DataModel model, UserContext context)
          Transforms pure data into browser-readable form.
 
Methods inherited from class ibspan.tss.agents.vta.handlers.ViewTransformer
prepareResponse
 
Methods inherited from class ibspan.tss.messaging.RequestHandler
action
 
Methods inherited from class jade.core.behaviours.OneShotBehaviour
done
 
Methods inherited from class jade.core.behaviours.SimpleBehaviour
reset
 
Methods inherited from class jade.core.behaviours.Behaviour
actionWrapper, block, block, getBehaviourName, getDataStore, getExecutionState, getParent, handle, isRunnable, onEnd, onStart, restart, root, setAgent, setBehaviourName, setDataStore, setExecutionState
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RaccoonTransformer

public RaccoonTransformer(Agent a,
                          DataStore ds,
                          Object requestKey,
                          Object actKey,
                          Object notificationKey)
Method Detail

transform

protected DataView transform(DataModel model,
                             UserContext context)
Description copied from class: ViewTransformer
Transforms pure data into browser-readable form.

Specified by:
transform in class ViewTransformer
Parameters:
model - are pure data be formatted
context - is context of user request, such type of media, session-id etc.
Returns:
browser-readable form of data