The shapefile loader matches attributes with methods by matching on the name and on the parameter type. Do both of these match for houseID? Note that this does not do any casting of primitives so if the method takes a double and the attribute is an int then there will be no match.
Nick
On May 18, 2010, at 10:51 AM, kakald wrote:
>
> Hi all,
> Now i am writing a simple program. In this program, i have 2 agents : person
> and house. And i also have two shape file person.shp and house.shp. In the
> person.shp, there is a new field that i added called "houseID". The value of
> this field is egal to value of the field "houseID" in the house.shp.
> But when i try to get houseID in the house.shp, it always return 0.
>
> Any one can help me,
> Thanks in advance,
> Kaka.
> --
> View this message in context:
http://old.nabble.com/Get-value-of-fields-in-a-shape-file-tp28596974p28596974.html> Sent from the repast-interest mailing list archive at Nabble.com.
>
>
> ------------------------------------------------------------------------------
>
> _______________________________________________
> Repast-interest mailing list
>
Repast-interest@...
>
https://lists.sourceforge.net/lists/listinfo/repast-interest------------------------------------------------------------------------------
_______________________________________________
Repast-interest mailing list
Repast-interest@...
https://lists.sourceforge.net/lists/listinfo/repast-interest