Hi Samuel,
elbaze@... wrote:
>
>I saw in the FAQ the following question:
>
>
>
>>17. Which protocols are supported by the simulator? (Ex: Gnutella, Chord,
>>Freenet)
>>
>>Gnutella, Freenet, NeuroGrid.
>>
>>Also Pastry, DNS, working on Chord and Tapestry.
>>
>>
>
>Did you write a MessageHandler infrastructure for Pastry and Chord protocol?
>
An MSc student wrote his own Pastry code - it is all in the
com/neurogrid/simulation/email folder
You can read abouthis project in the DistributedEmail section of the wiki:
http://www.neurogrid.net/twiki/bin/view/Main/DistributedEmailSimulation
As for the chord implementation I still haven't really got started on it.
>If yes where can I find their implementation???
>
Yeah - so the pastry version isn't using the messagehandler approach,
although I wish it was, and I have not working code for Chord.
>It would be helpful for me to compare some different MessageHandler.
>
>
The best thing to do would be to compare the NeuroGridMessageHandler and
the GnutellaMessageHandler. There is also a section in the wiki on
understanding how the MessageHandlers work:
http://www.neurogrid.net/twiki/bin/view/Main/CodeExtensionGuide
CHEERS> SAM
>Thanks,
>
>Sam
>
>-------------------------------------------------
>This mail sent through Institut Eurecom Webmail: http://webmail.eurecom.fr
>
>
>
>

Hi Jing,
Thanks for your more detailed report. I went into the code and found a
small bug - I believe I have fixed it. I have checked it into CVS (a
small problem in Simulation.java) - please check out the code and try
again. Your problem should be solved.
As for the other parameters you ask about are all specified at the
bottom of the following page:
http://www.neurogrid.net/twiki/bin/view/Main/SimulationParameters
Some of the ones you are asking about are already there - others I have
just added. Be aware that some aspects are only relevant to dynamic
networks, e.g. MIN/MAX CONNECTIONS, and things like NO_HONEST_NODES only
apply to certain network types, i.e. you won't be able to use them in a
simple Gnutella simulation - or at least not without changing some code.
HTH
My apologies for the imperfect state of the code and documentation - I
haven't had much time to work on the simulator recently.
CHEERS> SAM
Jing wrote:
> Yes, I use "ant simulation -Dfile=conf/xxxxx" to specify which
> configration file I run. I used cvs to downloaded the simulator code
> this morning again and run the simulation serveral times, the results
> are still same.
> In my simulation, the parameter of NO_NODES and
> (MIN)MAX_CONNECTIONS_PER_NODE=100 doen't affect the result at all. If
> I change START_TTL or NO_HONEST_NODES, the results are different.
> I attached two log files in this email. You can see the only changes
> in these two simulation are the NO_NODES(10:120) and
> MAX_CONNECTIONS_PER_NODE(50:100), but the result are same. What's
> more, the result of Conectivity is always 2. I don't know why this
> happenend.
> Another thing I can't find out what the exact meaning of the following
> parameters are:
> NO_NODES=100 ( specifies the initial number of nodes)
> NO_HONEST_NODES=100 (?? number of new added nodes)
> NO_DOCUMENTS_PER_NODE=4( the number of documents placed in each node)
> NO_CONNECTIONS_PER_NODE=4 (the number of connections that will be made
> from each node at network startup)
> MIN/MAX_CONNECTIONS_PER_NODE=3 (?)
> Could you explain them in more detail? Sorry for the trouble and
> thanks a lot.

Hi, Sam
Yes, I use "ant simulation -Dfile=conf/xxxxx" to specify which
configration file I run. I used cvs to downloaded the simulator code
this morning again and run the simulation serveral times, the results
are still same.
In my simulation, the parameter of NO_NODES and
(MIN)MAX_CONNECTIONS_PER_NODE=100 doen't affect the result at all. If I
change START_TTL or NO_HONEST_NODES, the results are different.
I attached two log files in this email. You can see the only changes in
these two simulation are the NO_NODES(10:120) and
MAX_CONNECTIONS_PER_NODE(50:100), but the result are same. What's more,
the result of Conectivity is always 2. I don't know why this happenend.
Another thing I can't find out what the exact meaning of the following
parameters are:
NO_NODES=100 ( specifies the initial number of nodes)
NO_HONEST_NODES=100 (?? number of new added nodes)
NO_DOCUMENTS_PER_NODE=4( the number of documents placed in each node)
NO_CONNECTIONS_PER_NODE=4 (the number of connections that will be made
from each node at network startup)
MIN/MAX_CONNECTIONS_PER_NODE=3 (?)
Could you explain them in more detail? Sorry for the trouble and thanks
a lot.
- Jing
(1)
%NO_KEYWORDS = 120
% NO_DOCUMENTS = 240
% NO_KEYWORDS_PER_DOCUMENT = 3
% NO_NODES = 120
% NO_HONEST_NODES = 120
% NO_DOCUMENTS_PER_NODE = 5
% MAX_KNOWLEDGE_PER_NODE = 100
% NO_CONNECTIONS_PER_NODE = 3
% MIN_CONNECTIONS_PER_NODE = 3
% MAX_CONNECTIONS_PER_NODE = 10
% NO_SEARCH_KEYWORDS = 3
% START_TTL = 2
...
Connectivity, TTL, #matches, #false matches, TTL of 1st match, #message
transfers, #possible matches, #nodes reached, Efficiency
2, 2, 0.0, 0.0, -1.0, 3.0, 47.0, 4.0, 0.0
2, 2, 0.0, 0.0, -1.0, 2.0, 42.0, 3.0, 0.0
2, 2, 1.0, 0.0, 1.0, 4.0, 45.0, 5.0, 0.005555555555555556
2, 2, 1.0, 0.0, 1.0, 2.0, 73.0, 3.0, 0.00684931506849315
2, 2, 2.0, 0.0, 1.0, 4.0, 75.0, 5.0, 0.006666666666666667
2, 2, 0.0, 0.0, -1.0, 2.0, 43.0, 3.0, 0.0
2, 2, 3.0, 0.0, 1.0, 2.0, 75.0, 3.0, 0.02
2, 2, 1.0, 0.0, 1.0, 2.0, 44.0, 3.0, 0.011363636363636364
--------------------------------------------------------------------------------------------------------------------
(2)
NO_KEYWORDS = 120
% NO_DOCUMENTS = 240
% NO_KEYWORDS_PER_DOCUMENT = 3
% NO_NODES = 10
% NO_HONEST_NODES = 120
% NO_DOCUMENTS_PER_NODE = 5
% MAX_KNOWLEDGE_PER_NODE = 100
% NO_CONNECTIONS_PER_NODE = 3
% MIN_CONNECTIONS_PER_NODE = 3
% MAX_CONNECTIONS_PER_NODE = 50
% NO_SEARCH_KEYWORDS = 3
% START_TTL = 2
...
Connectivity, TTL, #matches, #false matches, TTL of 1st match, #message
transfers, #possible matches, #nodes reached, Efficiency
2, 2, 0.0, 0.0, -1.0, 3.0, 47.0, 4.0, 0.0
2, 2, 0.0, 0.0, -1.0, 2.0, 42.0, 3.0, 0.0
2, 2, 1.0, 0.0, 1.0, 4.0, 45.0, 5.0, 0.005555555555555556
2, 2, 1.0, 0.0, 1.0, 2.0, 73.0, 3.0, 0.00684931506849315
2, 2, 2.0, 0.0, 1.0, 4.0, 75.0, 5.0, 0.006666666666666667
2, 2, 0.0, 0.0, -1.0, 2.0, 43.0, 3.0, 0.0
2, 2, 3.0, 0.0, 1.0, 2.0, 75.0, 3.0, 0.02
2, 2, 1.0, 0.0, 1.0, 2.0, 44.0, 3.0, 0.011363636363636364
Sam Joseph wrote:
> Hi Jing,
>
> If changing these parameters are not affecting the results I suspect
> you are changing the parameters in the wrong file.
> Please cut and paste precisely what you are typing in to the command
> line into any mail that you send, and that might help us fix your
> problem.
> Make sure the command you are running and the file you are editing are
> matched up, i.e.
>
> ant.bat simulation -Dfile=conf/GNUTELLA.properties
>
> means you need to edit the conf/GNUTELLA.properties file, and save it
> before re-running the simulation.
>
> If you are doing exactly this and still having problems that is very
> strange. Which version of the system are you using? Did you check it
> out of CVS?
>
> CHEERS >SAM
>
> Jing wrote:
>
>> Hi, Sam
>> I found some strange things when simulating the Gnutella network with
>> the simulator
>> 1. the parameter MAX_CONNECTION_PER_NODE doesn't affect the results.
>> Whatever number I change to this parameter, the result is exactly same.
>> 2. the parameter NO_NODES doesn't affect, too
>> 3. from the result from the conf file GNUTELLA.properties, I found
>> the connectivity is always 2 no matter how I change the parameter.
>> Could you explain these to me?
>> Thanks a lot.
>>
>> - Jing
>>
>> Jing wrote:
>>
>>> Hi, Sam
>>>
>>> Thanks a lot again. Now I'm trying to simulate Gnutella network. But
>>> I'm not sure several parameters' meaning in properties file.
>>> Could you explain them in more detail?
>>> NO_NODES=100 ( specifies the initial number of nodes)
>>> NO_HONEST_NODES=100 (? number of new added nodes)
>>> NO_DOCUMENTS_PER_NODE=4( the number of documents placed in each node)
>>> MAX_KNOWLEDGE_PER_NODE=10 (?)
>>> NO_CONNECTIONS_PER_NODE=4 (the number of connections that will be
>>> made from each node at network startup)
>>> MAX_CONNECTIONS_PER_NODE=3 (?)
>>> Sorry for the trouble.
>>>
>>> - Jing
>>>
>>> Sam Joseph wrote:
>>>
>>>> Hi Jing
>>>>
>>>> Jing wrote:
>>>>
>>>>> Thank you so much for your help. I can use the chart function
>>>>> correctly. But I still have several questions.
>>>>> 1. After I run ant simulation-stat, 5 log files are created in the
>>>>> output directory. But only the log files
>>>>> XXXX_ng_ad_simulation and XXXX_ng_ad_sum_simulation can be parsed
>>>>> to charts with ant chart function.
>>>>> Is this correct?
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> At the moment yes, although in principle the others could be parsed
>>>> into a chart with only minor modifications to the code I haven't
>>>> actually tried it.
>>>>
>>>>> 2. In log file XXXX_ng_ad_probe_simulation, no data produced, only
>>>>> such lines:
>>>>> loop, total nodes, ttl ave, ttl stdev, ttl max, ttl min)
>>>>> INTERNAL_LOOP+1: 101
>>>>> STATS_LOOP+1: 50
>>>>> But in your documentation
>>>>> http://www.neurogrid.net/twiki/bin/view/Main/StatisticsGeneration
>>>>> There should be some data in that file.
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> Only if the probe loop number is lower than the internal loop number
>>>> See the description of of the PROBE_LOOP parameter here:
>>>>
>>>> http://www.neurogrid.net/twiki/bin/view/Main/SimulationParameters
>>>>
>>>>> 3. Can I specify what data I want to show on the chart?
>>>>> When I produce chart with log file XXXX_ng_ad_simulation, there
>>>>> are 7 kinds of data (loop, No matches, No false matches, TTL,
>>>>> message transfers, Nodes reached, possible matches) shown on the
>>>>> grasp,
>>>>> If I don't want the data "loop" shown, where should I change the
>>>>> code? Is there a way to do that?
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> There is not an easy way at the moment - you could import the data
>>>> into XL and cut out columns.
>>>> At the moment the "chart" target grabs all data in whatever file
>>>> you point it at.
>>>>
>>>> There is a multi-chart function that lets you specify sets of data,
>>>> but it is designed to integrate data over multiple simulations, and
>>>> requires you to create the write set of log files first.
>>>>
>>>>> 4. I want to reproduce the charts shown in your documentation
>>>>> http://www.neurogrid.net/si-simulation02.html
>>>>> How can I do that?
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> These charts were produced from the same log files, but were
>>>> created using Matlab, a separate piece of software that you may or
>>>> may not have access to. I would be happy to work together with you
>>>> to get the same kinds of graphs coming out of the simulator, but I
>>>> am really busy this month. In May I will have more time to focus
>>>> on the simulator.
>>>>
>>>> If you wanted to work on the chart code to handle this before then
>>>> I would be very happy. We can make you a developer on the project
>>>> so you can check code back in if you make changes. The code to
>>>> look at is here simulator\src\com\neurogrid\simulation\chart\
>>>>
>>>> Let me know what you think.
>>>>
>>>> CHEERS> SAM
>>>>
>>>>
>>>>
>>>>
>>>> -------------------------------------------------------
>>>> This SF.Net email is sponsored by: IBM Linux Tutorials
>>>> Free Linux tutorial presented by Daniel Robbins, President and CEO of
>>>> GenToo technologies. Learn everything from fundamentals to system
>>>> administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
>>>> _______________________________________________
>>>> Neurogrid-simulation mailing list
>>>> Neurogrid-simulation@...
>>>> https://lists.sourceforge.net/lists/listinfo/neurogrid-simulation
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> -------------------------------------------------------
>>> This SF.Net email is sponsored by: IBM Linux Tutorials
>>> Free Linux tutorial presented by Daniel Robbins, President and CEO of
>>> GenToo technologies. Learn everything from fundamentals to system
>>> administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
>>> _______________________________________________
>>> Neurogrid-simulation mailing list
>>> Neurogrid-simulation@...
>>> https://lists.sourceforge.net/lists/listinfo/neurogrid-simulation
>>
>>
>>
>>
>>
>>
>
>
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by: IBM Linux Tutorials
> Free Linux tutorial presented by Daniel Robbins, President and CEO of
> GenToo technologies. Learn everything from fundamentals to system
> administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
> _______________________________________________
> Neurogrid-simulation mailing list
> Neurogrid-simulation@...
> https://lists.sourceforge.net/lists/listinfo/neurogrid-simulation

Hi Jing,
If changing these parameters are not affecting the results I suspect you
are changing the parameters in the wrong file.
Please cut and paste precisely what you are typing in to the command
line into any mail that you send, and that might help us fix your problem.
Make sure the command you are running and the file you are editing are
matched up, i.e.
ant.bat simulation -Dfile=conf/GNUTELLA.properties
means you need to edit the conf/GNUTELLA.properties file, and save it
before re-running the simulation.
If you are doing exactly this and still having problems that is very
strange. Which version of the system are you using? Did you check it
out of CVS?
CHEERS >SAM
Jing wrote:
> Hi, Sam
> I found some strange things when simulating the Gnutella network with
> the simulator
> 1. the parameter MAX_CONNECTION_PER_NODE doesn't affect the results.
> Whatever number I change to this parameter, the result is exactly same.
> 2. the parameter NO_NODES doesn't affect, too
> 3. from the result from the conf file GNUTELLA.properties, I found the
> connectivity is always 2 no matter how I change the parameter.
> Could you explain these to me?
> Thanks a lot.
>
> - Jing
>
> Jing wrote:
>
>> Hi, Sam
>>
>> Thanks a lot again. Now I'm trying to simulate Gnutella network. But
>> I'm not sure several parameters' meaning in properties file.
>> Could you explain them in more detail?
>> NO_NODES=100 ( specifies the initial number of nodes)
>> NO_HONEST_NODES=100 (? number of new added nodes)
>> NO_DOCUMENTS_PER_NODE=4( the number of documents placed in each node)
>> MAX_KNOWLEDGE_PER_NODE=10 (?)
>> NO_CONNECTIONS_PER_NODE=4 (the number of connections that will be
>> made from each node at network startup)
>> MAX_CONNECTIONS_PER_NODE=3 (?)
>> Sorry for the trouble.
>>
>> - Jing
>>
>> Sam Joseph wrote:
>>
>>> Hi Jing
>>>
>>> Jing wrote:
>>>
>>>> Thank you so much for your help. I can use the chart function
>>>> correctly. But I still have several questions.
>>>> 1. After I run ant simulation-stat, 5 log files are created in the
>>>> output directory. But only the log files
>>>> XXXX_ng_ad_simulation and XXXX_ng_ad_sum_simulation can be parsed
>>>> to charts with ant chart function.
>>>> Is this correct?
>>>
>>>
>>>
>>>
>>> At the moment yes, although in principle the others could be parsed
>>> into a chart with only minor modifications to the code I haven't
>>> actually tried it.
>>>
>>>> 2. In log file XXXX_ng_ad_probe_simulation, no data produced, only
>>>> such lines:
>>>> loop, total nodes, ttl ave, ttl stdev, ttl max, ttl min)
>>>> INTERNAL_LOOP+1: 101
>>>> STATS_LOOP+1: 50
>>>> But in your documentation
>>>> http://www.neurogrid.net/twiki/bin/view/Main/StatisticsGeneration
>>>> There should be some data in that file.
>>>
>>>
>>>
>>>
>>> Only if the probe loop number is lower than the internal loop number
>>> See the description of of the PROBE_LOOP parameter here:
>>>
>>> http://www.neurogrid.net/twiki/bin/view/Main/SimulationParameters
>>>
>>>> 3. Can I specify what data I want to show on the chart?
>>>> When I produce chart with log file XXXX_ng_ad_simulation, there are
>>>> 7 kinds of data (loop, No matches, No false matches, TTL, message
>>>> transfers, Nodes reached, possible matches) shown on the grasp,
>>>> If I don't want the data "loop" shown, where should I change the
>>>> code? Is there a way to do that?
>>>
>>>
>>>
>>>
>>> There is not an easy way at the moment - you could import the data
>>> into XL and cut out columns.
>>> At the moment the "chart" target grabs all data in whatever file
>>> you point it at.
>>>
>>> There is a multi-chart function that lets you specify sets of data,
>>> but it is designed to integrate data over multiple simulations, and
>>> requires you to create the write set of log files first.
>>>
>>>> 4. I want to reproduce the charts shown in your documentation
>>>> http://www.neurogrid.net/si-simulation02.html
>>>> How can I do that?
>>>
>>>
>>>
>>>
>>> These charts were produced from the same log files, but were created
>>> using Matlab, a separate piece of software that you may or may not
>>> have access to. I would be happy to work together with you to get
>>> the same kinds of graphs coming out of the simulator, but I am
>>> really busy this month. In May I will have more time to focus on
>>> the simulator.
>>>
>>> If you wanted to work on the chart code to handle this before then I
>>> would be very happy. We can make you a developer on the project so
>>> you can check code back in if you make changes. The code to look at
>>> is here simulator\src\com\neurogrid\simulation\chart\
>>>
>>> Let me know what you think.
>>>
>>> CHEERS> SAM
>>>
>>>
>>>
>>>
>>> -------------------------------------------------------
>>> This SF.Net email is sponsored by: IBM Linux Tutorials
>>> Free Linux tutorial presented by Daniel Robbins, President and CEO of
>>> GenToo technologies. Learn everything from fundamentals to system
>>> administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
>>> _______________________________________________
>>> Neurogrid-simulation mailing list
>>> Neurogrid-simulation@...
>>> https://lists.sourceforge.net/lists/listinfo/neurogrid-simulation
>>
>>
>>
>>
>>
>>
>> -------------------------------------------------------
>> This SF.Net email is sponsored by: IBM Linux Tutorials
>> Free Linux tutorial presented by Daniel Robbins, President and CEO of
>> GenToo technologies. Learn everything from fundamentals to system
>> administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
>> _______________________________________________
>> Neurogrid-simulation mailing list
>> Neurogrid-simulation@...
>> https://lists.sourceforge.net/lists/listinfo/neurogrid-simulation
>
>
>
>
>

Hi Samuel,
elbaze@... wrote:
>>This is because I have yet to properly update the Freenet code to the
>>new MessageHandler framework - the Freenet system currently works fully
>>in older versions of the code.
>>
>>
>So Can you provide me FreenetMessageHandler and linked files in order to study
>them?
>(I cannot use CVS do to a Firewall and a boring network administrator ;-) )
>
Okay, so there is no FreenetMessageHandler as such. There are the old
Freenet classes, which did not use MessageHandlers. The task remaining
is to refactor the Freenet classes into the MessageHandler infrastructure.
When you say you cannot do CVS, you mean you have no access to the
source at all? What code have you been looking at? One of the packages?
[I really must do a new release at some point ...]
Actually the old Freenet code is not in CVS - you need to check one of
the older packages. Download version 0.1.4 from the following link:
http://sourceforge.net/project/showfiles.php?group_id=26907&package_id=23082
The code for routing in the Freenet network is in the FreenetNode class
in the processMessage method. Basically this code needs to be ripped
out and placed in the FreenetMessageHandler - a bit of a messy job, but
I will be happy to help you if you are willing to undertake it.
However not having CVS access kind of sucks - is there nothing you can
do about that?
>- Is there any difference between SimpleMessage.java and
>SimpleContentMessage.java?
>
Well SimpleMessage extend the Message abstract class, while
SimpleContentMessage extend the ContentMessage class. ContentMessage
extends Message. So the question to ask is what is the different
between ContentMessage and Message, which is that ContentMessage adds
some new fields to be the "content" of the message, whereas the fields
defined in Message only handle the routing of the message. Due to
inheritance, SimpleContentMessage and SimpleMessage thus have the same
difference.
Actually I'm not sure we are even using SimpleMessage anymore. The
point of the ContentMessage abstract class is to pull the message body
fields up into the abstract layer, so they don't have to be redefined by
all Message instantiations.
>- Is is correct that "SimpleFiles" (SimpleMessage, SimpleDocument,
>SimpleKeyword, SimpleContentMessage) were created in order to group
>constructors? Is that their only role?
>
Well they have a few more methods than constructors, but not many. The
point of them is to provide the additional functionality needed by the
abstract classes like ContentMessage and Document to make the things
actually usable.
The priinciple is that you have various data and functionality generic
across all your different types of Documents, Nodes, Keywords etc., and
defined once in the root classes so that you can re-use it with minor
modifications in the classes that extend them, i.e. SimpleDocument,
SimpleKeyword, FreenetKeyword etc.
You might find the FAQ useful for trying to understand this, along with
some of the simulator design conversations that took place on this
mailing list.
FAQ: http://www.neurogrid.net/twiki/bin/view/Main/FrequentlyAskedQuestions
ML Archives: http://sourceforge.net/mailarchive/forum.php?forum_id=8271
CHEERS> SAM

Hi, Sam
I found some strange things when simulating the Gnutella network with
the simulator
1. the parameter MAX_CONNECTION_PER_NODE doesn't affect the results.
Whatever number I change to this parameter, the result is exactly same.
2. the parameter NO_NODES doesn't affect, too
3. from the result from the conf file GNUTELLA.properties, I found the
connectivity is always 2 no matter how I change the parameter.
Could you explain these to me?
Thanks a lot.
- Jing
Jing wrote:
> Hi, Sam
>
> Thanks a lot again. Now I'm trying to simulate Gnutella network. But
> I'm not sure several parameters' meaning in properties file.
> Could you explain them in more detail?
> NO_NODES=100 ( specifies the initial number of nodes)
> NO_HONEST_NODES=100 (? number of new added nodes)
> NO_DOCUMENTS_PER_NODE=4( the number of documents placed in each node)
> MAX_KNOWLEDGE_PER_NODE=10 (?)
> NO_CONNECTIONS_PER_NODE=4 (the number of connections that will be made
> from each node at network startup)
> MAX_CONNECTIONS_PER_NODE=3 (?)
> Sorry for the trouble.
>
> - Jing
>
> Sam Joseph wrote:
>
>> Hi Jing
>>
>> Jing wrote:
>>
>>> Thank you so much for your help. I can use the chart function
>>> correctly. But I still have several questions.
>>> 1. After I run ant simulation-stat, 5 log files are created in the
>>> output directory. But only the log files
>>> XXXX_ng_ad_simulation and XXXX_ng_ad_sum_simulation can be parsed to
>>> charts with ant chart function.
>>> Is this correct?
>>
>>
>>
>> At the moment yes, although in principle the others could be parsed
>> into a chart with only minor modifications to the code I haven't
>> actually tried it.
>>
>>> 2. In log file XXXX_ng_ad_probe_simulation, no data produced, only
>>> such lines:
>>> loop, total nodes, ttl ave, ttl stdev, ttl max, ttl min)
>>> INTERNAL_LOOP+1: 101
>>> STATS_LOOP+1: 50
>>> But in your documentation
>>> http://www.neurogrid.net/twiki/bin/view/Main/StatisticsGeneration
>>> There should be some data in that file.
>>
>>
>>
>> Only if the probe loop number is lower than the internal loop number
>> See the description of of the PROBE_LOOP parameter here:
>>
>> http://www.neurogrid.net/twiki/bin/view/Main/SimulationParameters
>>
>>> 3. Can I specify what data I want to show on the chart?
>>> When I produce chart with log file XXXX_ng_ad_simulation, there are
>>> 7 kinds of data (loop, No matches, No false matches, TTL, message
>>> transfers, Nodes reached, possible matches) shown on the grasp,
>>> If I don't want the data "loop" shown, where should I change the
>>> code? Is there a way to do that?
>>
>>
>>
>> There is not an easy way at the moment - you could import the data
>> into XL and cut out columns.
>> At the moment the "chart" target grabs all data in whatever file you
>> point it at.
>>
>> There is a multi-chart function that lets you specify sets of data,
>> but it is designed to integrate data over multiple simulations, and
>> requires you to create the write set of log files first.
>>
>>> 4. I want to reproduce the charts shown in your documentation
>>> http://www.neurogrid.net/si-simulation02.html
>>> How can I do that?
>>
>>
>>
>> These charts were produced from the same log files, but were created
>> using Matlab, a separate piece of software that you may or may not
>> have access to. I would be happy to work together with you to get
>> the same kinds of graphs coming out of the simulator, but I am really
>> busy this month. In May I will have more time to focus on the
>> simulator.
>>
>> If you wanted to work on the chart code to handle this before then I
>> would be very happy. We can make you a developer on the project so
>> you can check code back in if you make changes. The code to look at
>> is here simulator\src\com\neurogrid\simulation\chart\
>>
>> Let me know what you think.
>>
>> CHEERS> SAM
>>
>>
>>
>>
>> -------------------------------------------------------
>> This SF.Net email is sponsored by: IBM Linux Tutorials
>> Free Linux tutorial presented by Daniel Robbins, President and CEO of
>> GenToo technologies. Learn everything from fundamentals to system
>> administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
>> _______________________________________________
>> Neurogrid-simulation mailing list
>> Neurogrid-simulation@...
>> https://lists.sourceforge.net/lists/listinfo/neurogrid-simulation
>
>
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by: IBM Linux Tutorials
> Free Linux tutorial presented by Daniel Robbins, President and CEO of
> GenToo technologies. Learn everything from fundamentals to system
> administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
> _______________________________________________
> Neurogrid-simulation mailing list
> Neurogrid-simulation@...
> https://lists.sourceforge.net/lists/listinfo/neurogrid-simulation

Hi sam,
Quoting Sam Joseph <gaijin@...>:
> Hi Samuel,
>
> elbaze@... wrote:
>
> >I am currently studying how do you implement different protocols in your
> >simulator and I have some few questions:
> >
> > ...
> >
> >2) I don't understand why is there (almost) no differences between the
> >implementation of Freenet and the implementation of neurogrid?
> >I mean:
> > FreenetMessageHandler.java = Neurogrid MessageHandler.java
> > FreenetNode.java = NeurogridNode.java (few differences)
> > FreenetNetwork.java = Neurogrid Network.java (few differences)
> >
> This is because I have yet to properly update the Freenet code to the
> new MessageHandler framework - the Freenet system currently works fully
> in older versions of the code.
>
So Can you provide me FreenetMessageHandler and linked files in order to study
them?
(I cannot use CVS do to a Firewall and a boring network administrator ;-) )
- Is there any difference between SimpleMessage.java and
SimpleContentMessage.java?
- Is is correct that "SimpleFiles" (SimpleMessage, SimpleDocument,
SimpleKeyword, SimpleContentMessage) were created in order to group
constructors? Is that their only role?
Thanks,
Samuel
-------------------------------------------------
This mail sent through Institut Eurecom Webmail: http://webmail.eurecom.fr

Hi, Sam
Thanks a lot again. Now I'm trying to simulate Gnutella network. But I'm
not sure several parameters' meaning in properties file.
Could you explain them in more detail?
NO_NODES=100 ( specifies the initial number of nodes)
NO_HONEST_NODES=100 (? number of new added nodes)
NO_DOCUMENTS_PER_NODE=4( the number of documents placed in each node)
MAX_KNOWLEDGE_PER_NODE=10 (?)
NO_CONNECTIONS_PER_NODE=4 (the number of connections that will be made
from each node at network startup)
MAX_CONNECTIONS_PER_NODE=3 (?)
Sorry for the trouble.
- Jing
Sam Joseph wrote:
> Hi Jing
>
> Jing wrote:
>
>> Thank you so much for your help. I can use the chart function
>> correctly. But I still have several questions.
>> 1. After I run ant simulation-stat, 5 log files are created in the
>> output directory. But only the log files
>> XXXX_ng_ad_simulation and XXXX_ng_ad_sum_simulation can be parsed to
>> charts with ant chart function.
>> Is this correct?
>
>
> At the moment yes, although in principle the others could be parsed
> into a chart with only minor modifications to the code I haven't
> actually tried it.
>
>> 2. In log file XXXX_ng_ad_probe_simulation, no data produced, only
>> such lines:
>> loop, total nodes, ttl ave, ttl stdev, ttl max, ttl min)
>> INTERNAL_LOOP+1: 101
>> STATS_LOOP+1: 50
>> But in your documentation
>> http://www.neurogrid.net/twiki/bin/view/Main/StatisticsGeneration
>> There should be some data in that file.
>
>
> Only if the probe loop number is lower than the internal loop number
> See the description of of the PROBE_LOOP parameter here:
>
> http://www.neurogrid.net/twiki/bin/view/Main/SimulationParameters
>
>> 3. Can I specify what data I want to show on the chart?
>> When I produce chart with log file XXXX_ng_ad_simulation, there are 7
>> kinds of data (loop, No matches, No false matches, TTL, message
>> transfers, Nodes reached, possible matches) shown on the grasp,
>> If I don't want the data "loop" shown, where should I change the
>> code? Is there a way to do that?
>
>
> There is not an easy way at the moment - you could import the data
> into XL and cut out columns.
> At the moment the "chart" target grabs all data in whatever file you
> point it at.
>
> There is a multi-chart function that lets you specify sets of data,
> but it is designed to integrate data over multiple simulations, and
> requires you to create the write set of log files first.
>
>> 4. I want to reproduce the charts shown in your documentation
>> http://www.neurogrid.net/si-simulation02.html
>> How can I do that?
>
>
> These charts were produced from the same log files, but were created
> using Matlab, a separate piece of software that you may or may not
> have access to. I would be happy to work together with you to get the
> same kinds of graphs coming out of the simulator, but I am really busy
> this month. In May I will have more time to focus on the simulator.
>
> If you wanted to work on the chart code to handle this before then I
> would be very happy. We can make you a developer on the project so
> you can check code back in if you make changes. The code to look at
> is here simulator\src\com\neurogrid\simulation\chart\
>
> Let me know what you think.
>
> CHEERS> SAM
>
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by: IBM Linux Tutorials
> Free Linux tutorial presented by Daniel Robbins, President and CEO of
> GenToo technologies. Learn everything from fundamentals to system
> administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
> _______________________________________________
> Neurogrid-simulation mailing list
> Neurogrid-simulation@...
> https://lists.sourceforge.net/lists/listinfo/neurogrid-simulation

Hi, Sam
Thanks a lot again. Now I'm trying to simulate Gnutella network. But I'm
not sure several parameters' meaning in properties file.
Could you explain them in more detail?
NO_NODES=100 ( specifies the initial number of nodes)
NO_HONEST_NODES=100 (? number of new added nodes)
NO_DOCUMENTS_PER_NODE=4( the number of documents placed in each node)
MAX_KNOWLEDGE_PER_NODE=10 (?)
NO_CONNECTIONS_PER_NODE=4 (the number of connections that will be made
from each node at network startup)
MAX_CONNECTIONS_PER_NODE=3 (?)
Sorry for the trouble.
- Jing
Sam Joseph wrote:
> Hi Jing
>
> Jing wrote:
>
>> Thank you so much for your help. I can use the chart function
>> correctly. But I still have several questions.
>> 1. After I run ant simulation-stat, 5 log files are created in the
>> output directory. But only the log files
>> XXXX_ng_ad_simulation and XXXX_ng_ad_sum_simulation can be parsed to
>> charts with ant chart function.
>> Is this correct?
>
>
> At the moment yes, although in principle the others could be parsed
> into a chart with only minor modifications to the code I haven't
> actually tried it.
>
>> 2. In log file XXXX_ng_ad_probe_simulation, no data produced, only
>> such lines:
>> loop, total nodes, ttl ave, ttl stdev, ttl max, ttl min)
>> INTERNAL_LOOP+1: 101
>> STATS_LOOP+1: 50
>> But in your documentation
>> http://www.neurogrid.net/twiki/bin/view/Main/StatisticsGeneration
>> There should be some data in that file.
>
>
> Only if the probe loop number is lower than the internal loop number
> See the description of of the PROBE_LOOP parameter here:
>
> http://www.neurogrid.net/twiki/bin/view/Main/SimulationParameters
>
>> 3. Can I specify what data I want to show on the chart?
>> When I produce chart with log file XXXX_ng_ad_simulation, there are 7
>> kinds of data (loop, No matches, No false matches, TTL, message
>> transfers, Nodes reached, possible matches) shown on the grasp,
>> If I don't want the data "loop" shown, where should I change the
>> code? Is there a way to do that?
>
>
> There is not an easy way at the moment - you could import the data
> into XL and cut out columns.
> At the moment the "chart" target grabs all data in whatever file you
> point it at.
>
> There is a multi-chart function that lets you specify sets of data,
> but it is designed to integrate data over multiple simulations, and
> requires you to create the write set of log files first.
>
>> 4. I want to reproduce the charts shown in your documentation
>> http://www.neurogrid.net/si-simulation02.html
>> How can I do that?
>
>
> These charts were produced from the same log files, but were created
> using Matlab, a separate piece of software that you may or may not
> have access to. I would be happy to work together with you to get the
> same kinds of graphs coming out of the simulator, but I am really busy
> this month. In May I will have more time to focus on the simulator.
>
> If you wanted to work on the chart code to handle this before then I
> would be very happy. We can make you a developer on the project so
> you can check code back in if you make changes. The code to look at
> is here simulator\src\com\neurogrid\simulation\chart\
>
> Let me know what you think.
>
> CHEERS> SAM
>
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by: IBM Linux Tutorials
> Free Linux tutorial presented by Daniel Robbins, President and CEO of
> GenToo technologies. Learn everything from fundamentals to system
> administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
> _______________________________________________
> Neurogrid-simulation mailing list
> Neurogrid-simulation@...
> https://lists.sourceforge.net/lists/listinfo/neurogrid-simulation

Hi Jing
Jing wrote:
> Thank you so much for your help. I can use the chart function
> correctly. But I still have several questions.
> 1. After I run ant simulation-stat, 5 log files are created in the
> output directory. But only the log files
> XXXX_ng_ad_simulation and XXXX_ng_ad_sum_simulation can be parsed to
> charts with ant chart function.
> Is this correct?
At the moment yes, although in principle the others could be parsed into
a chart with only minor modifications to the code I haven't actually
tried it.
> 2. In log file XXXX_ng_ad_probe_simulation, no data produced, only
> such lines:
> loop, total nodes, ttl ave, ttl stdev, ttl max, ttl min)
> INTERNAL_LOOP+1: 101
> STATS_LOOP+1: 50
> But in your documentation
> http://www.neurogrid.net/twiki/bin/view/Main/StatisticsGeneration
> There should be some data in that file.
Only if the probe loop number is lower than the internal loop number
See the description of of the PROBE_LOOP parameter here:
http://www.neurogrid.net/twiki/bin/view/Main/SimulationParameters
> 3. Can I specify what data I want to show on the chart?
> When I produce chart with log file XXXX_ng_ad_simulation, there are 7
> kinds of data (loop, No matches, No false matches, TTL, message
> transfers, Nodes reached, possible matches) shown on the grasp,
> If I don't want the data "loop" shown, where should I change the code?
> Is there a way to do that?
There is not an easy way at the moment - you could import the data into
XL and cut out columns.
At the moment the "chart" target grabs all data in whatever file you
point it at.
There is a multi-chart function that lets you specify sets of data, but
it is designed to integrate data over multiple simulations, and requires
you to create the write set of log files first.
> 4. I want to reproduce the charts shown in your documentation
> http://www.neurogrid.net/si-simulation02.html
> How can I do that?
These charts were produced from the same log files, but were created
using Matlab, a separate piece of software that you may or may not have
access to. I would be happy to work together with you to get the same
kinds of graphs coming out of the simulator, but I am really busy this
month. In May I will have more time to focus on the simulator.
If you wanted to work on the chart code to handle this before then I
would be very happy. We can make you a developer on the project so you
can check code back in if you make changes. The code to look at is here
simulator\src\com\neurogrid\simulation\chart\
Let me know what you think.
CHEERS> SAM

Hi, Sam and Thomas
Thank you so much for your help. I can use the chart function correctly.
But I still have several questions.
1. After I run ant simulation-stat, 5 log files are created in the
output directory. But only the log files
XXXX_ng_ad_simulation and XXXX_ng_ad_sum_simulation can be parsed to
charts with ant chart function.
Is this correct?
2. In log file XXXX_ng_ad_probe_simulation, no data produced, only such
lines:
loop, total nodes, ttl ave, ttl stdev, ttl max, ttl min)
INTERNAL_LOOP+1: 101
STATS_LOOP+1: 50
But in your documentation
http://www.neurogrid.net/twiki/bin/view/Main/StatisticsGeneration
There should be some data in that file.
3. Can I specify what data I want to show on the chart?
When I produce chart with log file XXXX_ng_ad_simulation, there are 7
kinds of data (loop, No matches, No false matches, TTL, message
transfers, Nodes reached, possible matches) shown on the grasp,
If I don't want the data "loop" shown, where should I change the code?
Is there a way to do that?
4. I want to reproduce the charts shown in your documentation
http://www.neurogrid.net/si-simulation02.html
How can I do that?
Thanks a lot and looking forward to your reply.
- Jing
Thomas Repantis wrote:
>Or you can also right click on the chart and choose save as...
>
>Thomas
>
>On Fri, Apr 09, 2004 at 03:01:26AM -0400, Jing wrote:
>
>
>>Hi,
>>Sorry to bother you again.
>>Another problem is after I ran ant simulation, a chart window showed up,
>>how can I save this chart into a file?
>>Thanks a lot.
>>
>>- Jing
>>
>>
>>
>
>
>

Or you can also right click on the chart and choose save as...
Thomas
On Fri, Apr 09, 2004 at 03:01:26AM -0400, Jing wrote:
> Hi,
> Sorry to bother you again.
> Another problem is after I ran ant simulation, a chart window showed up,
> how can I save this chart into a file?
> Thanks a lot.
>=20
> - Jing
>=20
--=20
The absurd is the essential concept and the first truth.
-- Albert Camus

Using a screen/window capturing tool, I guess...
Thomas
On Fri, Apr 09, 2004 at 03:01:26AM -0400, Jing wrote:
> Hi,
> Sorry to bother you again.
> Another problem is after I ran ant simulation, a chart window showed up,
> how can I save this chart into a file?
> Thanks a lot.
>=20
> - Jing
--=20
The absurd is the essential concept and the first truth.
-- Albert Camus

Hi,
Sorry to bother you again.
Another problem is after I ran ant simulation, a chart window showed up,
how can I save this chart into a file?
Thanks a lot.
- Jing
>
>
> Thomas Repantis wrote:
>
>>Hi Jing,
>>
>>I assume that what you want to do is create simulation log files.
>>Then you can run:
>>./ant/bin/ant simulation-stat -Dfile=conf/ADVANCED_GNUTELLA.properties
>>Note the simulation-stat.
>>The logs are created in the output directory.
>>In the file argument you can specify your preferred parameter file.
>>This argument is not used to specify the name of the logfile.
>>
>>Cheers,
>>Thomas
>>
>>On Thu, Apr 08, 2004 at 11:05:17PM -0400, Jing wrote:
>>
>>
>>>Hi, Sam
>>>
>>>Thanks a lot for your help. I can run simulation correctly now. But one
>>>question is when I use the command
>>>ant\bin\ant simulation, I can see a lot of data on the window a chart
>>>shows up at last. But I checked the output
>>>directory and couldn't find any new log file stored there.
>>>When I try this command: ant\bin\ant simulation logfile test.log, I can
>>>see the file test.log is created in the current
>>>directory. I used ant\bin\ant chart -Dfile=test.log, the last lines of
>>>result is [java] parsing failed: -1
>>>Could you help me on the problem? Thanks a lot!
>>>
>>>- Jing
>>>
>>>
>>>
>>
>>
>>

Actually this was also mentioned here: =20
http://www.neurogrid.net/twiki/bin/view/Main/GnutellaSimulation
Thomas
On Fri, Apr 09, 2004 at 03:39:55PM +0900, Sam Joseph wrote:
> Jing,
>=20
> Whether the output gets sent to the screen or the log file depends on=20
> the log4j settings. Sorry there weren't any docs on that - I've just=20
> written some:
>=20
> http://www.neurogrid.net/twiki/bin/view/Main/LogOutputSettings
>=20
> How much output the NeuroGrid=20
> <http://www.neurogrid.net/twiki/bin/view/Main/NeuroGrid&gt; Simulator gives=
=20
> and where it is directed to is controlled by the log4j config file
>=20
> conf/log4j.properties
>=20
> See the log4j documentation=20
> <http://logging.apache.org/log4j/docs/manual.html&gt; for detailed setting=
=20
> information, but the thing to pay attention so is the first two lines:
>=20
> log4j.rootCategory=3Ddebug, stdout
> #log4j.rootCategory=3Dinfo, R, S
>=20
> As they stand they direct full debug to the screen, but if you want to=20
> send all output to a log file instead of a screen adjust to the following:
>=20
> #log4j.rootCategory=3Ddebug, stdout
> log4j.rootCategory=3Dinfo, R, S
>=20
> The terms debug and info can be interchanged to adjust the amount of=20
> logging detail, although please see the log4j documentation for the=20
> details of how this works:
>=20
> http://logging.apache.org/log4j/docs/manual.html
>=20
>=20
> CHEERS> SAM
>=20
--=20
The absurd is the essential concept and the first truth.
-- Albert Camus

Jing,
Whether the output gets sent to the screen or the log file depends on
the log4j settings. Sorry there weren't any docs on that - I've just
written some:
http://www.neurogrid.net/twiki/bin/view/Main/LogOutputSettings
How much output the NeuroGrid
<http://www.neurogrid.net/twiki/bin/view/Main/NeuroGrid&gt; Simulator gives
and where it is directed to is controlled by the log4j config file
conf/log4j.properties
See the log4j documentation
<http://logging.apache.org/log4j/docs/manual.html&gt; for detailed setting
information, but the thing to pay attention so is the first two lines:
log4j.rootCategory=debug, stdout
#log4j.rootCategory=info, R, S
As they stand they direct full debug to the screen, but if you want to
send all output to a log file instead of a screen adjust to the following:
#log4j.rootCategory=debug, stdout
log4j.rootCategory=info, R, S
The terms debug and info can be interchanged to adjust the amount of
logging detail, although please see the log4j documentation for the
details of how this works:
http://logging.apache.org/log4j/docs/manual.html
CHEERS> SAM
Jing wrote:
> Hi, Thomas
>
> Thank you for your reply. But what I run is "ant\bin\simulation
> logfile test.log", and I can see all the output
> showed on the window is stored in the test.log file.
> Now when I run ./ant/bin/ant simulation-stat
> -Dfile=conf/ADVANCED_GNUTELLA.properties
> A dictionary "test1" is created in the output dictionary, but this
> dictionary is empty, no log files are in it.
> Could you help me check this problem or tell me where I should check
> in the simulation code?
>
> Thanks a lot!
>
> - Jing
>
> Thomas Repantis wrote:
>
>>Hi Jing,
>>
>>I assume that what you want to do is create simulation log files.
>>Then you can run:
>>./ant/bin/ant simulation-stat -Dfile=conf/ADVANCED_GNUTELLA.properties
>>Note the simulation-stat.
>>The logs are created in the output directory.
>>In the file argument you can specify your preferred parameter file.
>>This argument is not used to specify the name of the logfile.
>>
>>Cheers,
>>Thomas
>>
>>On Thu, Apr 08, 2004 at 11:05:17PM -0400, Jing wrote:
>>
>>
>>>Hi, Sam
>>>
>>>Thanks a lot for your help. I can run simulation correctly now. But one
>>>question is when I use the command
>>>ant\bin\ant simulation, I can see a lot of data on the window a chart
>>>shows up at last. But I checked the output
>>>directory and couldn't find any new log file stored there.
>>>When I try this command: ant\bin\ant simulation logfile test.log, I can
>>>see the file test.log is created in the current
>>>directory. I used ant\bin\ant chart -Dfile=test.log, the last lines of
>>>result is [java] parsing failed: -1
>>>Could you help me on the problem? Thanks a lot!
>>>
>>>- Jing
>>>
>>>
>>>
>>
>>
>>

Hi, Thomas
Thank you for your reply. But what I run is "ant\bin\simulation logfile
test.log", and I can see all the output
showed on the window is stored in the test.log file.
Now when I run ./ant/bin/ant simulation-stat
-Dfile=conf/ADVANCED_GNUTELLA.properties
A dictionary "test1" is created in the output dictionary, but this
dictionary is empty, no log files are in it.
Could you help me check this problem or tell me where I should check in
the simulation code?
Thanks a lot!
- Jing
Thomas Repantis wrote:
>Hi Jing,
>
>I assume that what you want to do is create simulation log files.
>Then you can run:
>./ant/bin/ant simulation-stat -Dfile=conf/ADVANCED_GNUTELLA.properties
>Note the simulation-stat.
>The logs are created in the output directory.
>In the file argument you can specify your preferred parameter file.
>This argument is not used to specify the name of the logfile.
>
>Cheers,
>Thomas
>
>On Thu, Apr 08, 2004 at 11:05:17PM -0400, Jing wrote:
>
>
>>Hi, Sam
>>
>>Thanks a lot for your help. I can run simulation correctly now. But one
>>question is when I use the command
>>ant\bin\ant simulation, I can see a lot of data on the window a chart
>>shows up at last. But I checked the output
>>directory and couldn't find any new log file stored there.
>>When I try this command: ant\bin\ant simulation logfile test.log, I can
>>see the file test.log is created in the current
>>directory. I used ant\bin\ant chart -Dfile=test.log, the last lines of
>>result is [java] parsing failed: -1
>>Could you help me on the problem? Thanks a lot!
>>
>>- Jing
>>
>>
>>
>
>
>

Hi Jing,=20
I assume that what you want to do is create simulation log files. =20
Then you can run: =20
=2E/ant/bin/ant simulation-stat -Dfile=3Dconf/ADVANCED_GNUTELLA.properties
Note the simulation-stat. =20
The logs are created in the output directory. =20
In the file argument you can specify your preferred parameter file. =20
This argument is not used to specify the name of the logfile.=20
Cheers,=20
Thomas
On Thu, Apr 08, 2004 at 11:05:17PM -0400, Jing wrote:
> Hi, Sam
>=20
> Thanks a lot for your help. I can run simulation correctly now. But one=
=20
> question is when I use the command
> ant\bin\ant simulation, I can see a lot of data on the window a chart=20
> shows up at last. But I checked the output
> directory and couldn't find any new log file stored there.
> When I try this command: ant\bin\ant simulation logfile test.log, I can=
=20
> see the file test.log is created in the current
> directory. I used ant\bin\ant chart -Dfile=3Dtest.log, the last lines of=
=20
> result is [java] parsing failed: -1
> Could you help me on the problem? Thanks a lot!
>=20
> - Jing
>=20
--=20
The absurd is the essential concept and the first truth.
-- Albert Camus

Hi, Sam
Thanks a lot for your help. I can run simulation correctly now. But one
question is when I use the command
ant\bin\ant simulation, I can see a lot of data on the window a chart
shows up at last. But I checked the output
directory and couldn't find any new log file stored there.
When I try this command: ant\bin\ant simulation logfile test.log, I can
see the file test.log is created in the current
directory. I used ant\bin\ant chart -Dfile=test.log, the last lines of
result is [java] parsing failed: -1
Could you help me on the problem? Thanks a lot!
- Jing
Sam Joseph wrote:
> Hi Jing,
>
> The main problem is that you have checked out the neurogrid p2p system
> - not the simulator - use the following command
>
> cvs
> -d:pserver:anonymous@...:/cvsroot/neurogrid
> login
> cvs -z3
> -d:pserver:anonymous@...:/cvsroot/neurogrid
> co neurogrid/simulation
>
> Sorry - I just updated the documentation here:
>
> http://www.neurogrid.net/twiki/bin/view/Main/UsingCVS
>
> CHEERS> SAM
>
> Jing wrote:
>
>> Hi, Thomas
>> Thank you for your help. I used CVS with the following comands to
>> download the new versiton.
>>
>> cvs
>> -d:pserver:anonymous@...:/cvsroot/neurogrid
>> login
>> cvs -z3
>> -d:pserver:anonymous@...:/cvsroot/neurogrid
>> co neurogrid/development
>>
>> But when I tried to compile it with ant, there were bunch of errors
>> such as:
>> [javac] Note: sun.tools.javac.Main has been deprecated.
>> [javac]
>> E:\Downloads\software\P2PSimulator\development\src\com\neurogrid\database\MckoiSQLStore.java:30:
>> Package javax.servlet not found in import.
>> [javac] import javax.servlet.*;
>> [javac] ^
>> [javac]
>> E:\Downloads\software\P2PSimulator\development\src\com\neurogrid\database\MckoiSQLStore.java:31:
>> Package javax.servlet.http not found in import.
>>
>> I can't figure out what's the problem. Could you help me out? Thanks
>> a lot!
>>
>> - Jing
>> Thomas Repantis wrote:
>>
>>> Hi Jing,
>>> the simulator version you can download from the website does not
>>> contain a "chart" target in the build.xml file. Furthermore some of
>>> the different configuration files are not functioning properly. I
>>> would suggest that you use the newer version, that you can -very
>>> easily- download using CVS. If you are not familiar with CVS you
>>> can visit: http://www.neurogrid.net/twiki/bin/view/Main/UsingCVS
>>> http://sourceforge.net/cvs/?group_id=26907
>>>
>>> Cheers, Thomas
>>>
>>> On Wed, Apr 07, 2004 at 10:31:29PM -0400, Jing wrote:
>>>
>>>
>>>> Dear Sam,
>>>>
>>>> I'm trying to do some simulation with your NeruoGrid simulator in
>>>> Windows2000. But when I try to use "ant.bat chart -Dfile=...." to
>>>> parse the log files generated by the simulation class and turn them
>>>> into charts, it always says, "Target 'chart' does not exist in the
>>>> project". Another problem is when I use "ant
>>>> -Dfile=conf\GNUTELLA.properties", the results are still for
>>>> NeruoGrid. Could you help me on these problems? Thanks a lot and
>>>> looking forward to your reply.
>>>>
>>>> - Jing
>>>>
>>>
>>>
>>>
>>>
>>>
>>
>>
>>
>> -------------------------------------------------------
>> This SF.Net email is sponsored by: IBM Linux Tutorials
>> Free Linux tutorial presented by Daniel Robbins, President and CEO of
>> GenToo technologies. Learn everything from fundamentals to system
>> administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
>> _______________________________________________
>> Neurogrid-simulation mailing list
>> Neurogrid-simulation@...
>> https://lists.sourceforge.net/lists/listinfo/neurogrid-simulation
>>
>>
>
>
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by: IBM Linux Tutorials
> Free Linux tutorial presented by Daniel Robbins, President and CEO of
> GenToo technologies. Learn everything from fundamentals to system
> administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
> _______________________________________________
> Neurogrid-simulation mailing list
> Neurogrid-simulation@...
> https://lists.sourceforge.net/lists/listinfo/neurogrid-simulation

Hi, Sam
Thanks a lot for your help. I can run simulation correctly now. But one
question is when I use the command
ant\bin\ant simulation, I can see a lot of data on the window a chart
shows up at last. But I checked the output
directory and couldn't find any new log file stored there.
When I try this command: ant\bin\ant simulation logfile test.log, I can
see the file test.log is created in the current
directory. I used ant\bin\ant chart -Dfile=test.log, the last lines of
result is [java] parsing failed: -1
Could you help me on the problem? Thanks a lot!
- Jing

Hi, Sam
Thanks a lot for your help. I can run simulation correctly now. But one
question is when I use the command
ant\bin\ant simulation, I can see a lot of data on the window a chart
shows up at last. But I checked the output
directory and couldn't find any new log file stored there.
When I try this command: ant\bin\ant simulation logfile test.log, I can
see the file test.log is created in the current
directory. I used ant\bin\ant chart -Dfile=test.log, the last lines of
result is [java] parsing failed: -1
Could you help me on the problem? Thanks a lot!
- Jing

Hi, Sam
Thanks a lot for your help. I can run simulation correctly now. But one
question is when I use the command
ant\bin\ant simulation, I can see a lot of data on the window a chart
shows up at last. But I checked the output
directory and couldn't find any new log file stored there.
When I try this command: ant\bin\ant simulation logfile test.log, I can
see the file test.log is created in the current
directory. I used ant\bin\ant chart -Dfile=test.log, the last lines of
result is [java] parsing failed: -1
Could you help me on the problem? Thanks a lot!
- Jing

Hi Jing,
The main problem is that you have checked out the neurogrid p2p system -
not the simulator - use the following command
cvs
-d:pserver:anonymous@...:/cvsroot/neurogrid login
cvs -z3
-d:pserver:anonymous@...:/cvsroot/neurogrid co
neurogrid/simulation
Sorry - I just updated the documentation here:
http://www.neurogrid.net/twiki/bin/view/Main/UsingCVS
CHEERS> SAM
Jing wrote:
> Hi, Thomas
> Thank you for your help. I used CVS with the following comands to
> download the new versiton.
>
> cvs
> -d:pserver:anonymous@...:/cvsroot/neurogrid
> login
> cvs -z3
> -d:pserver:anonymous@...:/cvsroot/neurogrid
> co neurogrid/development
>
> But when I tried to compile it with ant, there were bunch of errors
> such as:
> [javac] Note: sun.tools.javac.Main has been deprecated.
> [javac]
> E:\Downloads\software\P2PSimulator\development\src\com\neurogrid\database\MckoiSQLStore.java:30:
> Package javax.servlet not found in import.
> [javac] import javax.servlet.*;
> [javac] ^
> [javac]
> E:\Downloads\software\P2PSimulator\development\src\com\neurogrid\database\MckoiSQLStore.java:31:
> Package javax.servlet.http not found in import.
>
> I can't figure out what's the problem. Could you help me out? Thanks a
> lot!
>
> - Jing
> Thomas Repantis wrote:
>
>> Hi Jing,
>> the simulator version you can download from the website does not
>> contain a "chart" target in the build.xml file. Furthermore some of
>> the different configuration files are not functioning properly. I
>> would suggest that you use the newer version, that you can -very
>> easily- download using CVS. If you are not familiar with CVS you can
>> visit: http://www.neurogrid.net/twiki/bin/view/Main/UsingCVS
>> http://sourceforge.net/cvs/?group_id=26907
>>
>> Cheers, Thomas
>>
>> On Wed, Apr 07, 2004 at 10:31:29PM -0400, Jing wrote:
>>
>>
>>> Dear Sam,
>>>
>>> I'm trying to do some simulation with your NeruoGrid simulator in
>>> Windows2000. But when I try to use "ant.bat chart -Dfile=...." to
>>> parse the log files generated by the simulation class and turn them
>>> into charts, it always says, "Target 'chart' does not exist in the
>>> project". Another problem is when I use "ant
>>> -Dfile=conf\GNUTELLA.properties", the results are still for
>>> NeruoGrid. Could you help me on these problems? Thanks a lot and
>>> looking forward to your reply.
>>>
>>> - Jing
>>>
>>
>>
>>
>>
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by: IBM Linux Tutorials
> Free Linux tutorial presented by Daniel Robbins, President and CEO of
> GenToo technologies. Learn everything from fundamentals to system
> administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
> _______________________________________________
> Neurogrid-simulation mailing list
> Neurogrid-simulation@...
> https://lists.sourceforge.net/lists/listinfo/neurogrid-simulation
>
>

Hi, Thomas
Thank you for your help. I used CVS with the following comands to
download the new versiton.
cvs -d:pserver:anonymous@...:/cvsroot/neurogrid login
cvs -z3 -d:pserver:anonymous@...:/cvsroot/neurogrid co neurogrid/development
But when I tried to compile it with ant, there were bunch of errors such as:
[javac] Note: sun.tools.javac.Main has been deprecated.
[javac]
E:\Downloads\software\P2PSimulator\development\src\com\neurogrid\database\MckoiSQLStore.java:30:
Package javax.servlet not found in import.
[javac] import javax.servlet.*;
[javac] ^
[javac]
E:\Downloads\software\P2PSimulator\development\src\com\neurogrid\database\MckoiSQLStore.java:31:
Package javax.servlet.http not found in import.
I can't figure out what's the problem. Could you help me out? Thanks a lot!
- Jing
Thomas Repantis wrote:
>Hi Jing,
>
>the simulator version you can download from the website does not
>contain a "chart" target in the build.xml file. Furthermore some
>of the different configuration files are not functioning properly.
>I would suggest that you use the newer version, that you can -very
>easily- download using CVS. If you are not familiar with CVS you
>can visit:
>http://www.neurogrid.net/twiki/bin/view/Main/UsingCVS
>http://sourceforge.net/cvs/?group_id=26907
>
>Cheers,
>Thomas
>
>On Wed, Apr 07, 2004 at 10:31:29PM -0400, Jing wrote:
>
>
>>Dear Sam,
>>
>>I'm trying to do some simulation with your NeruoGrid simulator in
>>Windows2000. But when I try to use "ant.bat chart -Dfile=...." to parse
>>the log files generated by the simulation class and turn them into
>>charts, it always says, "Target 'chart' does not exist in the project".
>>Another problem is when I use "ant -Dfile=conf\GNUTELLA.properties", the
>>results are still for NeruoGrid. Could you help me on these problems?
>>Thanks a lot and looking forward to your reply.
>>
>>- Jing
>>
>>
>
>
>

Hi Jing,=20
the simulator version you can download from the website does not=20
contain a "chart" target in the build.xml file. Furthermore some=20
of the different configuration files are not functioning properly. =20
I would suggest that you use the newer version, that you can -very=20
easily- download using CVS. If you are not familiar with CVS you=20
can visit: =20
http://www.neurogrid.net/twiki/bin/view/Main/UsingCVShttp://sourceforge.net/cvs/?group_id=3D26907
Cheers,=20
Thomas
On Wed, Apr 07, 2004 at 10:31:29PM -0400, Jing wrote:
> Dear Sam,
>=20
> I'm trying to do some simulation with your NeruoGrid simulator in=20
> Windows2000. But when I try to use "ant.bat chart -Dfile=3D...." to parse=
=20
> the log files generated by the simulation class and turn them into=20
> charts, it always says, "Target 'chart' does not exist in the project".=
=20
> Another problem is when I use "ant -Dfile=3Dconf\GNUTELLA.properties", th=
e=20
> results are still for NeruoGrid. Could you help me on these problems?=20
> Thanks a lot and looking forward to your reply.
>=20
> - Jing
--=20
The absurd is the essential concept and the first truth.
-- Albert Camus