View Javadoc

1   package cz.cuni.amis.pogamut.base3d.agent.jmx;
2   
3   import java.io.IOException;
4   import java.net.MalformedURLException;
5   
6   import javax.management.MalformedObjectNameException;
7   
8   import cz.cuni.amis.pogamut.base.agent.jmx.proxy.GhostAgentJMXProxy;
9   import cz.cuni.amis.pogamut.base3d.agent.IAgent3D;
10  import cz.cuni.amis.pogamut.base3d.worldview.object.Location;
11  import cz.cuni.amis.pogamut.base3d.worldview.object.Rotation;
12  import cz.cuni.amis.pogamut.base3d.worldview.object.Velocity;
13  
14  /**
15   *
16   * @author ik
17   */
18  public class Agent3DJMXProxy extends GhostAgentJMXProxy implements IAgent3D {
19  
20      public Agent3DJMXProxy(String agentJMXAddress) throws MalformedURLException, IOException, MalformedObjectNameException {
21          super(agentJMXAddress);
22      }
23  
24      @Override
25      public Location getLocation() {
26          return (Location) getAttributeNoException("Location");
27      }
28  
29      @Override
30      public Velocity getVelocity() {
31          return (Velocity) getAttributeNoException("Velocity");
32      }
33  
34      @Override
35      public Rotation getRotation() {
36          return (Rotation) getAttributeNoException("Rotation");
37      }
38  }