MASON-INTEREST-L Archives

January 2017

MASON-INTEREST-L@LISTSERV.GMU.EDU

Options: Use Monospaced Font
Show HTML Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Stewart Aitken <[log in to unmask]>
Reply To:
MASON Multiagent Simulation Toolkit <[log in to unmask]>
Date:
Wed, 25 Jan 2017 16:04:37 +0000
Content-Type:
multipart/mixed
Parts/Attachments:
text/plain (1420 bytes) , text/html (2324 bytes) , Borderonly.png (886 bytes) , BorderwithGrid.png (990 bytes) , GridScale.png (771 bytes)
Here are three small images that show what is happening.
Hopefully, this will help my explanation.

Kind regards,

Stewart.


On 25 January 2017 at 16:01, Stewart Aitken <[log in to unmask]> wrote:

> I am having difficulties with getting the grid lines and border to
> function as I would like.
>
>                 portrayal.setField(((SimEnviro) state).getAgentSpace());
>                 portrayal.setGridLines(false);
>                 portrayal.setBorder(true);
>
>                 agentSpace = new ObjectGrid2D(14,10);
>
> I am using these settings on Windows 10 with MASON 19 with the updated
> setBorder gives the correct agent scale and a complete on all four sides
> red border.
> When I activate the setGridlines it only gives a single blue line about a
> quarter of the way from the right-hand side. The red border remains the
> same as above. Subsequently, changing agentspace to:
>
>                 agentSpace = new ObjectGrid2D(140,100);
>
> Gives the correct number of cells within the borders but the agents are
> substantially smaller than they are without the gridlines. In addition, the
> red border fails to show on the right-hand edge and the bottom edge.
> How can I arrange for the agents to have a single agent in each grid cell
> and ensure they fill the cell?
> Any help gratefully received.
> Stewart Aitken
>
>
>
>
>


-- 



EMAIL DISCLAIMER http://www.york.ac.uk/docs/disclaimer/email.htm
<http://www.york.ac.uk/docs/disclaimer/email.htm>


ATOM RSS1 RSS2