CODE:
DynamicModel dynamicModel = workspace.getLookup().lookup(DynamicModel.class);TimeInterval visibleInterval = dynamicModel != null ? dynamicModel.getVisibleInterval() : new TimeInterval();...AttributeColumn latColumn = ... //DYNAMIC_FLOATObject val = node.getNodeData().getAttributes().getValue(latColumn.getIndex());val = DynamicUtilities.getDynamicValue(val, visibleInterval.getLow(), visibleInterval.getHigh());if (val != null) { Float latitude = (Float)val; //Latitude for the current interval}
Statistics:Posted by mbastian — 04 Feb 2011 21:02
CODE:
AttributeModel attModel = Lookup.getDefault().lookup(AttributeController.class).getModel();for (AttributeColumn c : attModel.getNodeTable().getColumns()) { [...]}
I guess this model does not contain the dynamics attributes. At the same time, it looks like latitude and longitude are actually not dynamics in your file (no start values, no end values). May be you should try to use two different attributes declarations in your file, for example:CODE:
<attributes class="node" mode="dynamic"> <attribute id="people_count" title="People Count" type="float"/></attributes><attributes class="node" mode="static"> <attribute id="latitude" title="latitude" type="double"/> <attribute id="longitude" title="longitude" type="double"/></attributes>
CODE:
<attributes class="node" mode="dynamic"> <attribute id="people_count" title="People Count" type="float"/> <attribute id="latitude" title="latitude" type="double"/> <attribute id="longitude" title="longitude" type="double"/></attributes>
Statistics:Posted by Alexis Jacomy — 02 Feb 2011 17:35
Statistics:Posted by sbourke — 02 Feb 2011 15:58
Statistics:Posted by seinecle — 02 Feb 2011 15:47
Statistics:Posted by admin — 02 Feb 2011 15:43
Statistics:Posted by sbourke — 02 Feb 2011 14:45
Statistics:Posted by seinecle — 02 Feb 2011 13:54
Statistics:Posted by sbourke — 02 Feb 2011 00:11
Statistics:Posted by admin — 01 Feb 2011 23:44
CODE:
<graph defaultedgetype="undirected" idtype="string" type="static"><attributes class="node" mode="static"><attribute id="code" title="Code" type="string"/><attribute id="city" title="City" type="string"/><attribute id="latitude" title="latitude" type="double"/><attribute id="longitude" title="longitude" type="double"/>
CODE:
<graph mode="dynamic" defaultedgetype="undirected"> <attributes class="node" mode="dynamic"><attribute id="people_count" title="People Count" type="float"/><attribute id="latitude" title="latitude" type="double"/><attribute id="longitude" title="longitude" type="double"/></attributes>
CODE:
<node id="0" label="Adams Field Airport"><attvalues><attvalue for="code" value="LIT"/><attvalue for="city" value="Little Rock, AR"/><attvalue for="latitude" value="34.729444"/><attvalue for="longitude" value="-92.224444"/></attvalues><viz:color b="243" g="107" r="88"/></node>
CODE:
</node><node id='3' label='Catch 22' start='0' end='66'> <attvalues><attvalue for='people_count' value='1' start='40'/> <attvalue for='people_count' value='3' start='47'/> <attvalue for='latitude' value='53.3649'/> <attvalue for='longitude' value='-6.2204'/></attvalues> </node><node id='4' label='Clarion Hotel IFSC Dublin' start='0' end='66'> <attvalues><attvalue for='people_count' value='1' start='5'/> <attvalue for='people_count' value='2' start='60'/> <attvalue for='people_count' value='1' start='44'/> <attvalue for='latitude' value='53.3478'/> <attvalue for='longitude' value='-6.24369'/></attvalues> </node>
Statistics:Posted by sbourke — 01 Feb 2011 20:46