Uhm... I'm not sure if we're talking about the same concept. Before changing code again, I need to know if I've understood what you've meant.
First possibility:
I have a date (Date object in java) and I have to convert it to an integer (i.e., epoch timestamp, like this: http://www.epochconverter.com/). If this is the case, what kind of conversion should I use for double?
Second possibility:
I've just got a number (e.g., 234 or 123.45678) and simply put it in start(open)/end(open) attributes.
Which is the case, the first one or the second one?
Thank you,
Francesco Ficarola
[SOLVED] gexf4j and spells
-
- Gephi Community Manager
- Posts:964
- Joined:09 Dec 2009 14:41 [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable
Re: gexf4j and spells
It's the second one.
Re: gexf4j and spells
Ok, I've changed the methods:admin wrote:It's the second one.
startDate(Date d) --> startValue(Object o)
endDate(Date d) --> endValue(Object o)
Then, in the DynamicEntityWriter class, I check if the Object "o" is a istance of the chosen type in the timeformat attribute, otherwise an exception is thrown.
Now, would you like to test it before publishing? I've done some tests, but if somebody wants to contribute... you're welcome.
Maybe it needs to create a google code project... what do you think of that?
Bye,
Francesco Ficarola
-
- Gephi Community Manager
- Posts:964
- Joined:09 Dec 2009 14:41 [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable
Re: gexf4j and spells
Yup, Github seems a better place: https://github.com/
I'll get the code when it's on this platform.
thanks!
I'll get the code when it's on this platform.
thanks!
Re: gexf4j and spells
https://github.com/francesco-ficarola/gexf4jadmin wrote:Yup, Github seems a better place: https://github.com/
I'll get the code when it's on this platform.
thanks!