ants.move.core.models.simulation3D
Class Simulation3DModel

java.lang.Object
  |
  +--ants.core.Thing
        |
        +--ants.move.core.models.simulation3D.Simulation3DModel
All Implemented Interfaces:
ants.core.Model, ants.core.PropertyChangeListener, ants.comm.RemoteEventListener, java.io.Serializable

public class Simulation3DModel
extends ants.core.Thing
implements ants.core.PropertyChangeListener

Implementation of Simulation3D Model.

Version:
1.0 Build 2002
Author:
Carles Pairot (cpairot@tinet.org), Oriol Montalà (omontala@tinet.org)
See Also:
Serialized Form

Constructor Summary
Simulation3DModel()
          Sole & void constructor.
 
Method Summary
 void addSimulation3DListener(Simulation3DListener sList)
          Add new Simulation 3d listener
 void destroy()
          Destroy method
 void firstS3D()
          Display first Simulation3D.
 java.lang.String getCurrent3DSlide()
          Return Url of current Simulation3D
 ants.core.Thing getS3DThing()
          Get simulation3D thing instance
 java.lang.String getScale()
          Get simulation3D scale factor by coordinate
 java.lang.String getTranslation()
          Get 3D Simulation Translation factor by coordinate.
 java.lang.String getType()
          Tool type
 void init()
          Initialize Model
 void lastS3D()
          Display last Simulation3D.
 void load3dSimulation(java.lang.String thingKey)
           
 void moveS3D(java.lang.String values)
          Remotely move 3D Simulation.
 void nextS3D()
          Display next Simulation3D.
 void prevS3D()
          Display previous Simulation3D.
 void propertyChange(ants.core.PropertyChangeEvent evt)
          Method triggered in response to a property change.
 void removeS3D()
          Remotely remove 3D Simulation.
 void removeSimulation3DListener(Simulation3DListener sList)
          Remove simulation3d listener
 void scaleS3D(java.lang.String values)
          Remotely scale 3D Simulation.
 void setS3DThing(java.lang.String thingKey)
          Set new Simulation3D set in tool
 void setScale(java.lang.String values)
          Set new scale value
 void setTranslation(java.lang.String values)
          Set new translation value
 
Methods inherited from class ants.core.Thing
addPropertyChangeListener, addTokenToProperty, eventArrived, getContext, getDescription, getIndexedProperty, getIndexedProperty, getIndexedPropertyNames, getIndexedPropertySize, getName, getPlace, getProperty, getPropertyNames, getThingGateway, getThingId, incrementProperty, init, removePropertyChangeListener, setProperty, triggerEvent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Simulation3DModel

public Simulation3DModel()
Sole & void constructor.
Method Detail

init

public void init()
Initialize Model
Overrides:
init in class ants.core.Thing

addSimulation3DListener

public void addSimulation3DListener(Simulation3DListener sList)
Add new Simulation 3d listener
Parameters:
sList - Class that implements Simulation3DListener interface

removeSimulation3DListener

public void removeSimulation3DListener(Simulation3DListener sList)
Remove simulation3d listener
Parameters:
sList - Class that implements Simulation3DListener interface

setS3DThing

public void setS3DThing(java.lang.String thingKey)
Set new Simulation3D set in tool
Parameters:
thingKey -  

getS3DThing

public ants.core.Thing getS3DThing()
Get simulation3D thing instance
Returns:
Thing instance

load3dSimulation

public void load3dSimulation(java.lang.String thingKey)

removeS3D

public void removeS3D()
Remotely remove 3D Simulation.

moveS3D

public void moveS3D(java.lang.String values)
Remotely move 3D Simulation.
Parameters:
values - translation "x y z" string

scaleS3D

public void scaleS3D(java.lang.String values)
Remotely scale 3D Simulation.
Parameters:
values - scale "x y z" string

firstS3D

public void firstS3D()
Display first Simulation3D.

prevS3D

public void prevS3D()
Display previous Simulation3D.

nextS3D

public void nextS3D()
Display next Simulation3D.

lastS3D

public void lastS3D()
Display last Simulation3D.

getCurrent3DSlide

public java.lang.String getCurrent3DSlide()
Return Url of current Simulation3D
Returns:
simulation3d source url

propertyChange

public void propertyChange(ants.core.PropertyChangeEvent evt)
Description copied from interface: ants.core.PropertyChangeListener
Method triggered in response to a property change.
Specified by:
propertyChange in interface ants.core.PropertyChangeListener
Following copied from interface: ants.core.PropertyChangeListener
Returns:
ants.core.PropertyChangeEvent A PropertyChangeEvent with property change information.

getTranslation

public java.lang.String getTranslation()
Get 3D Simulation Translation factor by coordinate.
Returns:
"x y z" String

getScale

public java.lang.String getScale()
Get simulation3D scale factor by coordinate
Returns:
"x y z" String

setTranslation

public void setTranslation(java.lang.String values)
Set new translation value
Parameters:
values - String "x y z"

setScale

public void setScale(java.lang.String values)
Set new scale value
Parameters:
values - String "x y z"

getType

public java.lang.String getType()
Tool type
Overrides:
getType in class ants.core.Thing
Returns:
SIMULATION3D

destroy

public void destroy()
Destroy method
Overrides:
destroy in class ants.core.Thing


Developers: Oriol Montala, Carles Pairot, Francesc Pinas2000 - 2002
Departament d'Enginyeria Informatica i Matematiques
Escola Tecnica Superior d'Enginyeria
Universitat Rovira i Virgili