certi-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [certi-dev] CERTI-Devel Digest, Vol 80, Issue 5


From: Waléria Antunes David
Subject: Re: [certi-dev] CERTI-Devel Digest, Vol 80, Issue 5
Date: Fri, 22 Feb 2013 09:42:50 -0300

Hi all,

Today, i did this:
I insert this line: SHIFT in my code...see:

Then i did:
1)In the first Command Prompt
C:\CERTI_3_4_0\exec>executeCerti.bat r

CERTI RTIG 3.4.0 - Copyright 2002-2008  ONERA
This is free software ; see the source for copying conditions. There is NO
warranty ; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

CERTI RTIG up and running ...

2) In the second Command Prompt
C:\CERTI_3_4_0\exec>executeCerti.bat m billard

C:\CERTI_3_4_0\bin\billard.exe
CERTI Billard 3.4.0
with TIMESTAMP. If you want without TIMESTAMP add -e option.
Display(400, 25, 500, 100)
Press ENTER to start execution...

the class of the new created object is4
Declaration done.

3) Again in the first command prompt:
New federation: Test
Looking for FOM file...
   Trying... Test.fed --> cannot access.
   Now trying...C:\CERTI_3_4_0\exec\share\federations\Test.fed --> cannot access
.
   Now trying...C:\CERTI_3_4_0\share\federations\Test.fed... opened.

(FED
    (Federation "Test")
    (FEDversion "v1.3")
    (federate "fed" "Public")

    (spaces
        (space "Geo" (id 1)
            (dimension "X" (id 1))
            (dimension "Y" (id 2))
        )
    )
    (objects
        (class "ObjectRoot" (id 1)
            (attribute "privilegeToDelete" (id 1) reliable timestamp)
            (class "RTIprivate" (id 2)
            )
            (class "Bille" (id 3)
                (attribute "PositionX" (id 2) reliable timestamp)
                (attribute "PositionY" (id 3) reliable timestamp)
                (class "Boule" (id 4)
                    (attribute "Color" (id 4) reliable timestamp)
                )
            )
        )
    )
    (interactions
        (interaction "InteractionRoot" (id 1) best_effort receive
            (interaction "RTIprivate" (id 2) best_effort receive
            )
            (interaction "Bing" (id 3) reliable timestamp
                (sec_level "Public")
                (parameter "BoulNum" (id 1))
                (parameter "DX" (id 2))
                (parameter "DY" (id 3))
            )
        )
    )
)
TCP Socket(RecevoirTCP) : No such file or directory
RTIG dropping client connection 1836.
TCP Socket 1836 : total =   8694578 Bytes sent
TCP Socket 1836 : total =  23078366 Bytes received
UDP Socket 1880 : total =         0 Bytes sent
UDP Socket 1880 : total =         0 Bytes received

This is correct?

My code:
@echo off

rem ##############################
rem #     implementation/version   #
rem ##############################


rem #################################
rem #  check command line arguments #
rem #################################
:checkargs
if "%0" == "" goto usage
if "%1" == "" goto usage

echo 0=%0
echo 1=%1

rem #######################
rem #  test for RTI_HOME  #
rem #######################
:rtihometest
call C:\CERTI_3_4_0\etc\confvars.bat
if "%CERTI_HOME%" == "" goto nortihome
if not "%CERTI_HOME%" == "" goto execute

:nortihome
echo ERROR Your CERTI_HOME environment variable is not set!
goto usage

############################################
### (target) execute #######################
############################################
:execute
SHIFT
set RTI_FEDDIR=C:\CERTI_3_4_0\share\federations
set EXEC=C:\CERTI_3_4_0\bin\
set FILE=C:\CERTI_3_4_0\share\federations\

:executehla
if "%0"=="r" goto exec0
if "%0"=="m" goto exec1

goto finish

rem ##################
rem #  run the RTIG  #
rem ##################
:exec0
"%CERTI_HOME%"\bin\rtig.exe -v 3
goto finish


rem ############################
rem #  run the billard program #
rem ############################
:exec1
echo %EXEC%billard.exe
"%EXEC%billard.exe" -n 1 -fTest -FTest.fed
goto finish

:usage
echo usage: executeCerti.bat (r)ti/(m)odel nome_modelo
goto err

:err
echo Terminated - Error
goto end

:finish
echo Terminated - Normal

:end



On Thu, Feb 21, 2013 at 3:13 PM, Waléria Antunes David <address@hidden> wrote:
Hi,

Part of my code:
:exec1
echo %EXEC%billard.exe
"%EXEC%billard.exe" -n 1 -fTest -FTest.fed
goto finish

And this error:

C:\CERTI_3_4_0\exec>
executeCerti.bat m billard
0=executeCerti.bat
1=m
"C:\CERTI_3_4_0\bin\billard.exe
CERTI Billard 3.4.0
billard: '--name' ('-n') option required
Terminated - Normal


My complete code:


@echo off

rem ##############################
rem #     implementation/version   #
rem ##############################


rem #################################
rem #  check command line arguments #
rem #################################
:checkargs
if "%0" == "" goto usage
if "%1" == "" goto usage

echo 0=%0
echo 1=%1

rem #######################
rem #  test for RTI_HOME  #
rem #######################
:rtihometest
call C:\CERTI_3_4_0\etc\confvars.bat
if "%CERTI_HOME%" == "" goto nortihome
if not "%CERTI_HOME%" == "" goto execute

:nortihome
echo ERROR Your CERTI_HOME environment variable is not set!
goto usage

############################################
### (target) execute #######################
############################################
:execute
set RTI_FEDDIR=C:\CERTI_3_4_0\share\federations
set EXEC=C:\CERTI_3_4_0\bin\
set FILE=C:\CERTI_3_4_0\share\federations\

:executehla
if "%0"=="r" goto exec0
if "%0"=="m" goto exec1

goto finish

rem ##################
rem #  run the RTIG  #
rem ##################
:exec0
"%CERTI_HOME%"\bin\rtig.exe -v 3
goto finish


rem ############################
rem #  run the billard program #
rem ############################
:exec1
echo %EXEC%billard.exe
"%EXEC%billard.exe" -n 1 -fTest -FTest.fed
goto finish

:usage
echo usage: executeCerti.bat (r)ti/(m)odel nome_modelo
goto err

:err
echo Terminated - Error
goto end

:finish
echo Terminated - Normal

:end

Thanks,


On Thu, Feb 21, 2013 at 2:01 PM, <address@hidden> wrote:
Send CERTI-Devel mailing list submissions to
        address@hidden

To subscribe or unsubscribe via the World Wide Web, visit
        https://lists.nongnu.org/mailman/listinfo/certi-devel
or, via email, send a message with subject or body 'help' to
        address@hidden

You can reach the person managing the list at
        address@hidden

When replying, please edit your Subject line so it is more specific
than "Re: Contents of CERTI-Devel digest..."


Today's Topics:

   1.  Compiling and Running the Federate (Wal?ria Antunes David)
   2. Re:  Compiling and Running the Federate (Jan-Patrick Osterloh)


----------------------------------------------------------------------

Message: 1
Date: Wed, 20 Feb 2013 12:37:04 -0300
From: Wal?ria Antunes David <address@hidden>
To: address@hidden
Subject: [certi-dev] Compiling and Running the Federate
Message-ID:
        <address@hidden>
Content-Type: text/plain; charset="windows-1252"

Hi all,


I'm developing a federated executeCerti.bat to run so I did this:

I created two .bat:
1-) confvars.bat (containing the environment variables necessary)
2-) executeCerti.bat (It calls the confvars.bat and runs the federated
model)

I created a directory called \etc in C:\CERTI_3_4_0\etc and put the
confvars.bat this directory \etc.
And I created a directory called \exec in C:\CERTI_3_4_0\exec and put the
executeCerti.bat this directory \exec

But when i try to execute in Prompt Command:
1) Run RTIG *(ok - **this running)*
C:\CERTI_3_4_0\exec>executeCerti.bat r
0=executeCerti.bat
1=r
CERTI RTIG 3.4.0 - Copyright 2002-2008  ONERA
This is free software ; see the source for copying conditions. There is NO
warranty ; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

CERTI RTIG up and running ...

2) Run the billard program*( ERROR)*
C:\CERTI_3_4_0\exec>executeCerti.bat m billard
0=executeCerti.bat
1=m
"C:\CERTI_3_4_0\bin\billard.exe
CERTI Billard 3.4.0
billard: '--name' ('-n') option required
Terminated - Normal

I don't understand this error. Why?

See my code: executeCerti.bat

@echo off

rem ##############################
rem #     implementation/version           #
rem ##############################


rem #################################
rem #  check command line arguments      #
rem #################################
:checkargs
if "%0" == "" goto usage
if "%1" == "" goto usage

echo 0=%0
echo 1=%1

rem #######################
rem #  test for RTI_HOME       #
rem #######################
:rtihometest
call C:\CERTI_3_4_0\etc\confvars.bat
if "%CERTI_HOME%" == "" goto nortihome
if not "%CERTI_HOME%" == "" goto execute

:nortihome
echo ERROR Your CERTI_HOME environment variable is not set!
goto usage

############################################
### (target) execute        #######################
############################################
:execute
SHIFT
set RTI_FEDDIR=C:\CERTI_3_4_0\share\federations
set EXEC=C:\CERTI_3_4_0\bin\
set FILE=C:\CERTI_3_4_0\share\federations\

:executehla
if "%0"=="r" goto exec0
if "%0"=="m" goto exec1

goto finish

rem ##################
rem #  run the RTIG       #
rem ##################
:exec0
"%CERTI_HOME%"\bin\rtig.exe -v 3
goto finish


rem ############################
rem #  run the billard program           #
rem ############################
:exec1
echo "%EXEC%billard.exe
"%EXEC%billard.exe" ?n 1 -fTest -FTest.fed
goto finish

:usage
echo usage: executeCerti.bat (r)ti/(m)odel nome_modelo
goto err

:err
echo Terminated - Error
goto end

:finish
echo Terminated - Normal

:end

Can you help me??

Thanks,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nongnu.org/archive/html/certi-devel/attachments/20130220/a59d262b/attachment.html>

------------------------------

Message: 2
Date: Wed, 20 Feb 2013 20:46:54 +0100
From: "Jan-Patrick Osterloh" <address@hidden>
To: CERTI development discussions <address@hidden>
Subject: Re: [certi-dev] Compiling and Running the Federate
Message-ID:
        <address@hidden>
Content-Type: text/plain; charset="UTF-8"; format=flowed

Hi,

Am 20. Februar 2013 16:37:04 schrieb Wal?ria Antunes David
<address@hidden>:
> "%EXEC%billard.exe" ?n 1 -fTest -FTest.fed

Is that a -n in your bat file? In my mail the dash looks different to
the dash in -fTest. If it is a different character, the argument may
not be parsed correctly. I cannot test it right now, as I don't have
the code here.

Bye
Jan-Patrick





------------------------------

_______________________________________________
CERTI-Devel mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/certi-devel


End of CERTI-Devel Digest, Vol 80, Issue 5
******************************************



reply via email to

[Prev in Thread] Current Thread [Next in Thread]