massim.visualization
Class Agent

java.lang.Object
  extended by massim.visualization.svg.SvgFunction
      extended by massim.visualization.Agent

public class Agent
extends SvgFunction

This class is the mainclass to draw an agent. Its provide mehtods to create svg elements


Constructor Summary
Agent()
           
 
Method Summary
 org.w3c.dom.Document goldDigger(org.w3c.dom.Document readDoc, long id, long teamId, int x, int y, java.lang.String rotate)
          create the gold digger
 org.w3c.dom.Document goldDigger(org.w3c.dom.Document readDoc, long id, long teamId, java.lang.String text, int x, int y, java.lang.String rotate)
          create the gold digger with label
 org.w3c.dom.Document goldDigger(org.w3c.dom.Document readDoc, long id, java.lang.String teamId, int x, int y, java.lang.String rotate)
          create the gold digger
 org.w3c.dom.Document goldDigger(org.w3c.dom.Document readDoc, long id, java.lang.String teamId, java.lang.String text, int x, int y, java.lang.String rotate)
          create the gold digger with label
 org.w3c.dom.Document goldDiggerWithGold(org.w3c.dom.Document readDoc, long id, long teamId, int x, int y, java.lang.String rotate)
           
 org.w3c.dom.Document goldDiggerWithGold(org.w3c.dom.Document readDoc, long id, long teamId, java.lang.String text, int x, int y, java.lang.String rotate)
           
 org.w3c.dom.Document goldDiggerWithGold(org.w3c.dom.Document readDoc, long id, java.lang.String teamId, int x, int y, java.lang.String rotate)
           
 org.w3c.dom.Document goldDiggerWithGold(org.w3c.dom.Document readDoc, long id, java.lang.String teamId, java.lang.String text, int x, int y, java.lang.String rotate)
           
 void setDimBoxHeight(double dimBoxHeight)
           
 void setDimBoxWidth(double dimBoxWidth)
           
 void setDimLine()
           
 void setDimLineY(double dimLineY)
           
 void setLabelColour(java.lang.String labelColour)
           
 void setLabelHeadColour(java.lang.String labelHeadColour)
           
 void setLabelHeadTextColour(java.lang.String labelHeadTextColour)
           
 void setLabelTextColour(java.lang.String labelTextColour)
           
 
Methods inherited from class massim.visualization.svg.SvgFunction
funcAddAttribute, funcCircle, funcEllipse, funcLine, funcLine, funcPath, funcPath, funcPolygon, funcPolyline, funcRect, funcText, funcText, rotation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Agent

public Agent()
Method Detail

setDimBoxHeight

public void setDimBoxHeight(double dimBoxHeight)

setDimBoxWidth

public void setDimBoxWidth(double dimBoxWidth)

setDimLineY

public void setDimLineY(double dimLineY)

setDimLine

public void setDimLine()

setLabelColour

public void setLabelColour(java.lang.String labelColour)

setLabelHeadColour

public void setLabelHeadColour(java.lang.String labelHeadColour)

setLabelHeadTextColour

public void setLabelHeadTextColour(java.lang.String labelHeadTextColour)

setLabelTextColour

public void setLabelTextColour(java.lang.String labelTextColour)

goldDigger

public org.w3c.dom.Document goldDigger(org.w3c.dom.Document readDoc,
                                       long id,
                                       java.lang.String teamId,
                                       int x,
                                       int y,
                                       java.lang.String rotate)
create the gold digger

Parameters:
readDoc -
id - identical the agent
x - horizontal position of the goldDigger (cell number)
y - vertical position of the goldDigger (cell number)
rotate - NOTE: "N"|"n" rotate agent North, "E"|"e" rotate agent East, "S"|"s" rotate agent South, "W"|"w" rotate agent West "12" rotate agent 12 degree rightwards
goldDigger - element

goldDigger

public org.w3c.dom.Document goldDigger(org.w3c.dom.Document readDoc,
                                       long id,
                                       long teamId,
                                       int x,
                                       int y,
                                       java.lang.String rotate)
create the gold digger

Parameters:
readDoc -
id - identical the agent
teamId - identical the team of the agent
x - horizontal position of the goldDigger (cell number)
y - vertical position of the goldDigger (cell number)
rotate - NOTE: "N"|"n" rotate agent North, "E"|"e" rotate agent East, "S"|"s" rotate agent South, "W"|"w" rotate agent West "12" rotate agent 12 degree rightwards
Returns:
goldDigger Element

goldDigger

public org.w3c.dom.Document goldDigger(org.w3c.dom.Document readDoc,
                                       long id,
                                       java.lang.String teamId,
                                       java.lang.String text,
                                       int x,
                                       int y,
                                       java.lang.String rotate)
create the gold digger with label

Parameters:
readDoc -
id - identical the agent
teamId - identical the team of the agent
text - text on the label of the agent
x - horizontal position of the goldDigger (cell number)
y - vertical position of the goldDigger (cell number)
rotate - NOTE: "N"|"n" rotate agent North, "E"|"e" rotate agent East, "S"|"s" rotate agent South, "W"|"w" rotate agent West "12" rotate agent 12 degree rightwards
Returns:
goldDigger element

goldDigger

public org.w3c.dom.Document goldDigger(org.w3c.dom.Document readDoc,
                                       long id,
                                       long teamId,
                                       java.lang.String text,
                                       int x,
                                       int y,
                                       java.lang.String rotate)
create the gold digger with label

Parameters:
readDoc -
id - identical the agent
teamId - identical the team of the agent
text - text on the label of the agent
x - horizontal position of the goldDigger (cell number)
y - vertical position of the goldDigger (cell number)
rotate - NOTE: "N"|"n" rotate agent North, "E"|"e" rotate agent East, "S"|"s" rotate agent South, "W"|"w" rotate agent West "12" rotate agent 12 degree rightwards
Returns:

goldDiggerWithGold

public org.w3c.dom.Document goldDiggerWithGold(org.w3c.dom.Document readDoc,
                                               long id,
                                               long teamId,
                                               int x,
                                               int y,
                                               java.lang.String rotate)
Parameters:
readDoc -
id - identical the agent
teamId - identical the team of the agent
x - horizontal position of the goldDiggerWithGold (cell number)
y - vertical position of the goldDiggerWithGold (cell number)
rotate - NOTE: "N"|"n" rotate agent North, "E"|"e" rotate agent East, "S"|"s" rotate agent South, "W"|"w" rotate agent West "12" rotate agent 12 degree rightwards

goldDiggerWithGold

public org.w3c.dom.Document goldDiggerWithGold(org.w3c.dom.Document readDoc,
                                               long id,
                                               java.lang.String teamId,
                                               int x,
                                               int y,
                                               java.lang.String rotate)
Parameters:
readDoc -
id - identical the agent
teamId - identical the team of the agent
x - horizontal position of the goldDiggerWithGold (cell number)
y - vertical position of the goldDiggerWithGold (cell number)
rotate - NOTE: "N"|"n" rotate agent North, "E"|"e" rotate agent East, "S"|"s" rotate agent South, "W"|"w" rotate agent West "12" rotate agent 12 degree rightwards
Returns:

goldDiggerWithGold

public org.w3c.dom.Document goldDiggerWithGold(org.w3c.dom.Document readDoc,
                                               long id,
                                               long teamId,
                                               java.lang.String text,
                                               int x,
                                               int y,
                                               java.lang.String rotate)
Parameters:
readDoc -
id - identical the agent
teamId - identical the team of the agent
text - text on the label of the agent
x - horizontal position of the goldDiggerWithGold (cell number)
y - vertical position of the goldDiggerWithGold (cell number)
rotate - NOTE: "N"|"n" rotate agent North, "E"|"e" rotate agent East, "S"|"s" rotate agent South, "W"|"w" rotate agent West "12" rotate agent 12 degree rightwards
Returns:

goldDiggerWithGold

public org.w3c.dom.Document goldDiggerWithGold(org.w3c.dom.Document readDoc,
                                               long id,
                                               java.lang.String teamId,
                                               java.lang.String text,
                                               int x,
                                               int y,
                                               java.lang.String rotate)
Parameters:
readDoc -
id - identical the agent
teamId - identical the team of the agent
text - text on the label of the agent
x - horizontal position of the goldDiggerWithGold (cell number)
y - vertical position of the goldDiggerWithGold (cell number)
rotate - NOTE: "N"|"n" rotate agent North, "E"|"e" rotate agent East, "S"|"s" rotate agent South, "W"|"w" rotate agent West "12" rotate agent 12 degree rightwards
Returns:


Copyright © 2012. All Rights Reserved.