MASON-INTEREST-L Archives

June 2005

MASON-INTEREST-L@LISTSERV.GMU.EDU

Options: Use Monospaced Font
Show Text 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:
Chad George <[log in to unmask]>
Reply To:
MASON Multiagent Simulation Toolkit <[log in to unmask]>
Date:
Sat, 18 Jun 2005 14:07:43 -0400
Content-Type:
text/plain
Parts/Attachments:
text/plain (25 lines)
I am very new to MASON. I worked through the tutorials and began to work on
my own project. I was trying to setup a domain for an integer property on my
model. I create the interval and the domFoo() function and the console
created the slider correctly. But when I went to move the slider I received
a exception because it was trying to assign a double value to the integer
property.

After tracking it down I found this in PropertyField.java

public void stateChanged (ChangeEvent e)
{
    . . .

double d;

if (domain.isDouble())
{
    . . .
}
else
{
    . . .

}

ATOM RSS1 RSS2