Commit cd5c1978 authored by Ludovic Apvrille's avatar Ludovic Apvrille

Rejecting commit by Daniela

parent 830a05e2
......@@ -16,7 +16,7 @@ GZIP = gzip -9 -f
DEBUG = -g
CLASSPATH = -classpath
SOURCEPATH = -sourcepath
#PACKAGE = avatartranslator avatartranslator/toexecutable avatartranslator/directsimulation avatartranslator/tocppsim avatartranslator/touppaal avatartranslator/toturtle avatartranslator/toproverif avatartranslator/totpn automata compiler/tmlparser vcd nc ddtranslator launcher myutil tpndescription sddescription sdtranslator tepe translator tmltranslator tmltranslator/tmlcp tmltranslator/toautomata tmltranslator/tosystemc tmltranslator/tomappingsystemc tmltranslator/tomappingsystemc2 tmltranslator/tomappingsystemc3 tmltranslator/touppaal tmltranslator/toturtle translator/tojava translator/tosimujava translator/totpn translator/touppaal ui ui/avatarbd ui/avatardd ui/avatarsmd ui/avatarrd ui/avatarpd ui/avatarcd ui/avatarad ui/ad ui/cd ui/oscd ui/osad ui/dd ui/ebrdd ui/file ui/graph ui/iod ui/ncdd ui/procsd ui/prosmdui/prosmd/util ui/tmlad ui/tmlcd ui/tmldd ui/tmlcomp ui/req ui/sd ui/tree ui/ucd ui/window tmltranslator tmltranslator/toturtle req/ebrdd tmltranslator/tosystemc tmatrix proverifspec uppaaldesc fr/inria/oasis/vercors/cttool/model remotesimulation tmltranslator/ctranslator attacktrees myutil/externalSearch ddtranslatorSoclib ddtranslatorSoclib/toFile ddtranslatorSoclib/toTopCell ddtranslatorSoclib/toSoclib
#PACKAGE = avatartranslator avatartranslator/toexecutable avatartranslator/directsimulation avatartranslator/tocppsim avatartranslator/touppaal avatartranslator/toturtle avatartranslator/toproverif avatartranslator/totpn automata compiler/tmlparser vcd nc ddtranslator launcher myutil tpndescription sddescription sdtranslator tepe translator tmltranslator tmltranslator/tmlcp tmltranslator/toautomata tmltranslator/tosystemc tmltranslator/tomappingsystemc tmltranslator/tomappingsystemc2 tmltranslator/tomappingsystemc3 tmltranslator/touppaal tmltranslator/toturtle translator/tojava translator/tosimujava translator/totpn translator/touppaal ui ui/avatarbd ui/avatardd ui/avatarsmd ui/avatarrd ui/avatarpd ui/avatarcd ui/avatarad ui/ad ui/cd ui/oscd ui/osad ui/dd ui/ebrdd ui/file ui/graph ui/iod ui/ncdd ui/procsd ui/prosmdui/prosmd/util ui/tmlad ui/tmlcd ui/tmldd ui/tmlcomp ui/req ui/sd ui/tree ui/ucd ui/window tmltranslator tmltranslator/toturtle req/ebrdd tmltranslator/tosystemc tmatrix proverifspec uppaaldesc fr/inria/oasis/vercors/cttool/model remotesimulation tmltranslator/ctranslator attacktrees myutil/externalSearch
BUILDER = builder.jar
BUILD_INFO = build.txt
BUILD_TO_MODIFY = src/ui/DefaultText.java
......@@ -102,7 +102,7 @@ make svn produces the .class files and commit a new build
make basic generates the .class files
make documentation generates the documentation of java classes using javadoc
make release to prepare a new release for the website. It produces the release.tgz files in releases/
make test tests on TTool. Currently, on tests on ProVerif generation
make test tests on TTool. Currently, tests on AVATAR to ProVerif generation
make clean removes the .class .dot .dta .sim .lot .~ and clears the release and test directories
make publish_jar places ttool.jar in perso.telecom-paristech.fr/docs/ttool.jar. Must have the right ssh key installed for this
make ultraclean runs clean and then removes the jar files in bin/
......@@ -153,9 +153,8 @@ jar: launcher ttooljar tiftranslator tmltranslator rundse remotesimulator
ttooljar:
rm -f $(TTOOL_BIN)/$(TTOOL_BINARY)
cp $(TTOOL_SRC)/ui/images/$(STD_LOGO) $(TTOOL_SRC)/ui/images/$(LOGO)
cd $(TTOOL_SRC); $(JAR) cmf $(TTOOL_JAR_TXT) $(TTOOL_BIN)/$(TTOOL_BINARY) Main.class vcd/*.class avatartranslator/*.class avatartranslator/toexecutable/*.class avatartranslator/directsimulation/*.class avatartranslator/touppaal/*.class avatartranslator/toproverif/*.class avatartranslator/totpn/* avatartranslator/*.class avatartranslator/toturtle/*.java automata/*.class compiler/tmlparser/*.class nc/*.class tepe/*.class tmltranslator/*.class tmltranslator/tmlcp/*.class tmltranslator/toautomata/*.class tmatrix/*.class tmltranslator/toturtle/*.class tmltranslator/touppaal/*.class tmltranslator/tosystemc/*.class tmltranslator/tomappingsystemc/*.class tmltranslator/tomappingsystemc2/*.class tmltranslator/tomappingsystemc3/*.class tpndescription/*.class ddtranslator/*.class launcher/*.class myutil/*.class sddescription/*.class sdtranslator/*.class translator/*.class translator/tojava/*.class translator/tosimujava/*.class translator/touppaal/*.class translator/totpn/*.class req/ebrdd/*.java ui/*.class ui/*/*.class ui/*/*/*.class proverifspec/*.class uppaaldesc/*.class ui/images/*.* ui/images/toolbarButtonGraphics/general/*.gif ui/images/toolbarButtonGraphics/navigation/*.gif ui/images/toolbarButtonGraphics/media/*.gif $(TTOOL_BIN)/$(LAUNCHER_BINARY) RTLLauncher.class launcher/*.class fr/inria/oasis/vercors/cttool/model/*.class remotesimulation/*.class tmltranslator/ctranslator/*.class attacktrees/*.class myutil/externalSearch/*.class ddtranslatorSoclib/*.class ddtranslatorSoclib/toSoclib/*.class ddtranslatorSoclib/toTopCell/*.class #compiler/tmlCPparser/parser/*.class
#ddtranslatorSoclib/toFile/*.class
cd $(TTOOL_SRC); $(JAR) cmf $(TTOOL_JAR_TXT) $(TTOOL_BIN)/$(TTOOL_BINARY) Main.class vcd/*.class avatartranslator/*.class avatartranslator/toexecutable/*.class avatartranslator/directsimulation/*.class avatartranslator/touppaal/*.class avatartranslator/toproverif/*.class avatartranslator/totpn/* avatartranslator/*.class avatartranslator/toturtle/*.java automata/*.class compiler/tmlparser/*.class nc/*.class tepe/*.class tmltranslator/*.class tmltranslator/tmlcp/*.class tmltranslator/toautomata/*.class tmatrix/*.class tmltranslator/toturtle/*.class tmltranslator/touppaal/*.class tmltranslator/tosystemc/*.class tmltranslator/tomappingsystemc/*.class tmltranslator/tomappingsystemc2/*.class tmltranslator/tomappingsystemc3/*.class tpndescription/*.class ddtranslator/*.class launcher/*.class myutil/*.class sddescription/*.class sdtranslator/*.class translator/*.class translator/tojava/*.class translator/tosimujava/*.class translator/touppaal/*.class translator/totpn/*.class req/ebrdd/*.java ui/*.class ui/*/*.class ui/*/*/*.class proverifspec/*.class uppaaldesc/*.class ui/images/*.* ui/images/toolbarButtonGraphics/general/*.gif ui/images/toolbarButtonGraphics/navigation/*.gif ui/images/toolbarButtonGraphics/media/*.gif $(TTOOL_BIN)/$(LAUNCHER_BINARY) RTLLauncher.class launcher/*.class fr/inria/oasis/vercors/cttool/model/*.class remotesimulation/*.class tmltranslator/ctranslator/*.class attacktrees/*.class myutil/externalSearch/*.class #compiler/tmlCPparser/parser/*.class
launcher:
rm -f $(TTOOL_BIN)/$(LAUNCHER_BINARY)
cd $(TTOOL_SRC);$(JAR) cmf $(LAUNCHER_JAR_TXT) $(TTOOL_BIN)/$(LAUNCHER_BINARY) RTLLauncher.class launcher/*.class myutil/*.class
......
......@@ -6,71 +6,68 @@
<DTA2DOTPath data="/packages/RT-LOTOS.0.12/bin/dta2dot" />
<RG2TLSAPath data="/packages/RT-LOTOS.0.12/bin/rg2tlsa" />
<RGSTRAPPath data="/packages/RT-LOTOS.0.12/bin/rgstrap" />
<DOTTYPath data="//opt/csw/bin/dotty" />
<!--DOTTYPath data="/usr/bin/dot" /-->
<DOTTYPath data="/bin/dotty" />
<DOTTYHost data="localhost" />
<AldebaranHost data="localhost" />
<AldebaranPath data="/packages/cadp/com/aldebaran" />
<BcgioPath data="/packages/cadp/bin.iX86/bcg_io" />
<BcgminPath data="/packages/cadp/bin.iX86/bcg_min" />
<BisimulatorPath data="/packages/cadp/com/bcg_open" />
<BcgmergePath data="/packages/cadp/com/bcg_merge" />
<CaesarPath data="/packages/cadp/bin.iX86/caesar" />
<CaesarOpenPath data="/packages/cadp/com/caesar.open" />
<FILEPath data="/users/enseig/genius/TURTLE/modeling" />
<LIBPath data="/users/enseig/genius/TURTLE/lib" />
<IMGPath data="/users/enseig/genius/TURTLE/figure" />
<LOTOSPath data="/users/enseig/genius/TURTLE/lotos" />
<GGraphPath data="/users/enseig/genius/TURTLE/graphs" />
<TGraphPath data="/users/enseig/genius/TURTLE/graphs" />
<AldebaranPath data="/home/enrici/cadp/com/aldebaran" />
<BcgioPath data="/home/enrici/cadp/bin.iX86/bcg_io" />
<BcgminPath data="/home/enrici/cadp/bin.iX86/bcg_min" />
<BisimulatorPath data="/home/enrici/cadp/com/bcg_open" />
<BcgmergePath data="/home/enrici/cadp/com/bcg_merge" />
<CaesarPath data="/home/enrici/cadp/bin.iX86/caesar" />
<CaesarOpenPath data="/home/enrici/cadp/com/caesar.open" />
<FILEPath data="/home/enrici/TURTLE/modeling" />
<LIBPath data="/home/enrici/TURTLE/lib" />
<IMGPath data="/home/enrici/TURTLE/figure" />
<LOTOSPath data="/home/enrici/TURTLE/lotos" />
<GGraphPath data="/home/enrici/TURTLE/graphs" />
<TGraphPath data="/home/enrici/TURTLE/graphs" />
<TToolUpdateURL data="" data1="http://labsoc.comelec.enst.fr/turtle/ttoolversion.html" />
<TToolUpdateProxy data="false" />
<TToolUpdateProxyPort data="8080" />
<TToolUpdateProxyHost data="To Be Completed" />
<JavaCodeDirectory data="/users/enseig/genius/TURTLE/javacode" />
<JavaCodeDirectory data="/home/enrici/TURTLE/javacode" />
<JavaCompilerPath data="/usr/bin/javac" />
<TToolClassPath data="/users/enseig/genius/TURTLE/javacode" />
<TToolClassPath data="/home/enrici/TURTLE/javacode" />
<JavaExecutePath data="/usr/bin/java" />
<JavaHeader data="import java.sql.*;" />
<SystemCCodeDirectory data="/users/enseig/genius/TURTLE/simulators/c++2/" />
<SystemCCodeDirectory data="/home/enrici/TURTLE/simulators/c++2/" />
<SystemCHost data="localhost"/>
<SystemCCodeCompileCommand data="make -C /users/enseig/genius/TURTLE/simulators/c++2/" />
<SystemCCodeExecuteCommand data="/users/enseig/genius/TURTLE/simulators/c++2/run.x -ovcd /users/enseig/genius/TURTLE/simulators/c++2/vcddump.vcd" />
<SystemCCodeInteractiveExecuteCommand data="/users/enseig/genius/TURTLE/simulators/c++2/run.x -server" />
<TMLCodeDirectory data="/users/enseig/genius/TURTLE/tmlcode" />
<GTKWavePath data="/opt/local/bin/gtkwave" />
<VCDPath data="/users/enseig/genius/TURTLE/vcd/" />
<UPPAALCodeDirectory data="/users/enseig/genius/TURTLE/uppaal/" />
<UPPAALVerifierPath data="/packages/uppaal-4.0.11/verifyta" />
<SystemCCodeCompileCommand data="make -C /home/enrici/TURTLE/simulators/c++2/" />
<SystemCCodeExecuteCommand data="/home/enrici/TURTLE/simulators/c++2/run.x -ovcd /home/enrici/TURTLE/simulators/c++2/vcddump.vcd" />
<SystemCCodeInteractiveExecuteCommand data="/home/enrici/TURTLE/simulators/c++2/run.x -server" />
<TMLCodeDirectory data="/home/enrici/TURTLE/tmlcode" />
<CcodeDirectory data="/home/enrici/TURTLE/Ccode" />
<GTKWavePath data="/usr/bin/gtkwave" />
<VCDPath data="/home/enrici/TURTLE/vcd/" />
<UPPAALCodeDirectory data="/home/enrici/TURTLE/uppaal/" />
<UPPAALVerifierPath data="/home/enrici/TURTLE/uppaal/bin-Linux/verifyta" />
<UPPAALVerifierHost data="localhost" />
<ProVerifCodeDirectory data="/users/enseig/genius/TURTLE/proverif/" />
<ProVerifCodeDirectory data="/home/enrici/TURTLE/proverif/" />
<ProVerifVerifierPath data="/packages/proverif/proverif" />
<ProVerifVerifierHost data="localhost" />
<AVATARExecutableCodeDirectory data="/users/enseig/genius/TURTLE/executablecode/" />
<AVATARExecutableCodeDirectory data="/home/enrici/TURTLE/executablecode/" />
<AVATARExecutableCodeHost data="localhost"/>
<AVATARExecutableCodeCompileCommand data="make -C /users/enseig/genius/TURTLE/executablecode" />
<AVATARExecutableCodeExecuteCommand data="/users/enseig/genius/TURTLE/executablecode/run.x" />
<AVATARExecutableSoclibCodeCompileCommand data="make -C /users/enseig/genius/TURTLE/executablecode updategeneratedcode compilesoclib" />
<AVATARExecutableSoclibCodeExecuteCommand data="make -C /users/enseig/genius/TURTLE/executablecode runsoclib" />
<AVATARExecutableSoclibTraceFile data="/users/enseig/genius/Prog/soclib/soclib/platform/topcells/caba-vgmn-mutekh_kernel_tutorial/vcitty" />
<AVATARExecutableCodeCompileCommand data="make -C /home/enrici/TURTLE/executablecode" />
<AVATARExecutableCodeExecuteCommand data="/home/enrici/TURTLE/executablecode/run.x" />
<AVATARExecutableSoclibCodeCompileCommand data="make -C /home/enrici/TURTLE/executablecode updategeneratedcode compilesoclib" />
<AVATARExecutableSoclibCodeExecuteCommand data="make -C /home/enrici/TURTLE/executablecode runsoclib" />
<AVATARExecutableSoclibTraceFile data="/home/enrici/TURTLE/Prog/soclib/soclib/platform/topcells/caba-vgmn-mutekh_kernel_tutorial/vcitty" />
<ExternalCommand1Host data="localhost"/>
<ExternalCommand1 data="/opt/local/bin/gtkwave /users/enseig/genius/TURTLE/simulators/c++2/vcddump.vcd"/>
<ExternalCommand1 data="/usr/bin/gtkwave /home/enrici/TURTLE/simulators/c++2/vcddump.vcd"/>
<ExternalCommand2Host data="localhost"/>
<ExternalCommand2 data="/packages/uppaal(4.0.11/uppaal /users/enseig/genius/TURTLE/uppaal/spec.xml"/>
<ExternalCommand2 data="/packages/uppaal(4.0.11/uppaal /home/enrici/TURTLE/uppaal/spec.xml"/>
<LastOpenFile data="/users/enseig/genius/TURTLE/modeling/miniAsynchronousDeploy2.xml"/>
<LastOpenFile data="/home/trhuy/Downloads/SemesterFinalResult/StuxnetModel/stuxnet_6_12_split (1).xml"/>
<ExternalServer data="10.188.65.215:12345"/>
<LastWindowAttributes x="744" y="231" width="936" height="596" max="false" />
<LastWindowAttributes x="494" y="224" width="1219" height="597" max="false" />
<ProVerifHash data=""/>
</TURTLECONFIGURATION>
SOCLIB_CPU=ppc
MUTEKH_CPU=ppc
include generated_topcell/procinfo.mk
#SOCLIB_CPU=sparcv8
#MUTEKH_CPU=sparc
#SOCLIB_CPU_COUNT=1
PATH+=/opt/mutekh/bin
export PATH
updateruntime:
# cp ~/TTool/executablecode/src/*.c ~/Prog/mutekh/libavatar/
# cp ~/TTool/executablecode/src/*.h ~/Prog/mutekh/libavatar/include/
cp ~/TTool/executablecode/src_soclib/*.c ~/Prog/mutekh/libavatar/
cp ~/TTool/executablecode/src_soclib/*.h ~/Prog/mutekh/libavatar/include/
cp ~/TTool/executablecode/src_soclib/Makefile ~/Prog/mutekh/libavatar/
updategeneratedcode:
# cp ~/TTool/executablecode/generated_src/*.h ~/Prog/mutekh/examples/avatar
# cp ~/TTool/executablecode/generated_src/*.c ~/Prog/mutekh/examples/avatar
cp ~/TTool/executablecode/generated_src_soclib/*.h ~/Prog/mutekh/examples/avatar
cp ~/TTool/executablecode/generated_src_soclib/*.c ~/Prog/mutekh/examples/avatar
cp ~/TTool/executablecode/Makefile.soclib ~/Prog/mutekh/examples/avatar/Makefile
compilesoclib:
cp ~/TTool/executablecode/generated_topcell/top.cc ~/Prog/soclib/soclib/platform/topcells/caba-vgmn-mutekh_kernel_tutorial/
cp ~/TTool/executablecode/generated_topcell/deployinfo.h ~/Prog/mutekh/arch/soclib/
cp ~/TTool/executablecode/generated_topcell/deployinfo_map.h ~/Prog/mutekh/arch/soclib/
cat ~/TTool/executablecode/generated_topcell/config_noproc ~/TTool/executablecode/generated_topcell/nbproc > ~/TTool/executablecode/generated_topcell/config
cp ~/TTool/executablecode/generated_topcell/config ~/Prog/mutekh/examples/avatar/
cd ~/Prog/mutekh; make CONF=examples/avatar/config BUILD=soclib-$(MUTEKH_CPU):pf-tutorial
runsoclib:
echo "running soclib"
cd ~/Prog/soclib/soclib/platform/topcells/caba-vgmn-mutekh_kernel_tutorial; make; SOCLIB_GDB=S ./system.x $(SOCLIB_CPU):$(SOCLIB_CPU_COUNT) ~/Prog/mutekh/avatar-soclib-$(MUTEKH_CPU).out
allsoclib: updateruntime updategeneratedcode compilesoclib runsoclib
SOCLIB_CPU=ppc405
MUTEKH_CPU=ppc
SOCLIB_CPU_COUNT=5
#SOCLIB_CPU=sparcv8
#MUTEKH_CPU=sparc
#SOCLIB_CPU_COUNT=1
PATH+=/opt/mutekh/bin
export PATH
updateruntime:
cp ~/TTool/executablecode/src/*.c ~/Prog/mutekh/libavatar/
cp ~/TTool/executablecode/src/*.h ~/Prog/mutekh/libavatar/include/
updategeneratedcode:
cp ~/TTool/executableCode/generated_src/*.h ~/Prog/mutekh/examples/avatar
cp ~/TTool/executableCode/generated_src/*.c ~/Prog/mutekh/examples/avatar
cp ~/TTool/executableCode/Makefile.soclib ~/Prog/mutekh/examples/avatar/Makefile
compilesoclib:
cd ~/Prog/mutekh; make CONF=examples/avatar/config BUILD=soclib-$(MUTEKH_CPU):pf-tutorial
runsoclib:
echo "running soclib"
cd ~/Prog/soclib/soclib/platform/topcells/caba-vgmn-mutekh_kernel_tutorial; SOCLIB_GDB=S ./system.x $(SOCLIB_CPU):$(SOCLIB_CPU_COUNT) ~/Prog/mutekh/avatar-soclib-$(MUTEKH_CPU).out
allsoclib: updateruntime updategeneratedcode compilesoclib runsoclib
updateruntime_hw:
cp ~/TTool/executablecode/src_soclib/*.c ~/Prog/mutekh/libavatar/
cp ~/TTool/executablecode/src_soclib/include/*.h ~/Prog/mutekh/libavatar/include/
updategeneratedcode_hw:
#DG 31.10. prendre version du code appli pour soclib materiel
cp ~/TTool/executablecode/generated_src_soclib/*.h ~/Prog/mutekh/examples/avatar
#DG 31.10. prendre version du code appli pour soclib materiel
cp ~/TTool/executablecode/generated_src_soclib/*.c ~/Prog/mutekh/examples/avatar
cp ~/TTool/executableCode/Makefile.soclib ~/Prog/mutekh/examples/avatar/Makefile
compilesoclib_hw:
cd ~/Prog/mutekh; make CONF=examples/avatar/config BUILD=soclib-$(MUTEKH_CPU):pf-tutorial
#DG 31.10.2014 ici ajoute un make dans le repertoire de la plateforme materielle
runsoclib_hw:
echo "running soclib"
cd ~/Prog/soclib/soclib/platform/topcells/caba-vgmn-mutekh_kernel_tutorial; make; SOCLIB_GDB=S ./system.x $(SOCLIB_CPU):$(SOCLIB_CPU_COUNT) ~/Prog/mutekh/avatar-soclib-$(MUTEKH_CPU).out
allsoclib: updateruntime updategeneratedcode compilesoclib runsoclib
SRCS = generated_src/main.c generated_src/System.c generated_src/Bob.c generated_src/Alice.c
SRCS = generated_src/main.c generated_src/System.c generated_src/Bob.c generated_src/Alice.c
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
......@@ -133,7 +133,7 @@ public class AvatarBlock extends AvatarElement {
}
///////////////////////////////////
//
public AvatarConstant getAvatarConstantWithName(String _name) {
return this.avspec.getAvatarConstantWithName (_name);
}
......
......@@ -147,15 +147,6 @@ public class AvatarSpecification extends AvatarElement {
}
//DG
public boolean ASynchronousExist(){
LinkedList<AvatarRelation> asynchro = getRelations();
for ( AvatarRelation ar : asynchro )
if (ar.isAsynchronous())
return true;
return false;
}
// end DG
public void addBlock(AvatarBlock _block) {
blocks.add(_block);
}
......
/**Copyright or (C) or Copr. GET / ENST, Telecom-Paris, Ludovic Apvrille
*
* ludovic.apvrille AT enst.fr
*
* This software is a computer program whose purpose is to allow the
* edition of TURTLE analysis, design and deployment diagrams, to
* allow the generation of RT-LOTOS or Java code from this diagram,
* and at last to allow the analysis of formal validation traces
* obtained from external tools, e.g. RTL from LAAS-CNRS and CADP
* from INRIA Rhone-Alpes.
*
* This software is governed by the CeCILL license under French law and
* abiding by the rules of distribution of free software. You can use,
* modify and/ or redistribute the software under the terms of the CeCILL
* license as circulated by CEA, CNRS and INRIA at the following URL
* "http://www.cecill.info".
*
* As a counterpart to the access to the source code and rights to copy,
* modify and redistribute granted by the license, users are provided only
* with a limited warranty and the software's author, the holder of the
* economic rights, and the successive licensors have only limited
* liability.
*
* In this respect, the user's attention is drawn to the risks associated
* with loading, using, modifying and/or developing or reproducing the
* software by the user in light of its specific status of free software,
* that may mean that it is complicated to manipulate, and that also
* therefore means that it is reserved for developers and experienced
* professionals having in-depth computer knowledge. Users are therefore
* encouraged to load and test the software's suitability as regards their
* requirements in conditions enabling the security of their systems and/or
* data to be ensured and, more generally, to use and operate it in the
* same conditions as regards security.
*
* The fact that you are presently reading this means that you have had
* knowledge of the CeCILL license and that you accept its terms.
*
* /**
* Class TaskFile
* Creation: 29/03/2011
* @version 1.1 29/03/2011
* @author Ludovic APVRILLE
* @see
*/
package avatartranslator.toexecutable;
import java.awt.*;
import java.util.*;
import myutil.*;
import avatartranslator.*;
public class TaskFileSocLib {
/////////////////////RG
//1) enlever pthread.h
//2) ajouter : srl.h et mwmr.h
//private final static String INCLUDE_HEADER = "#include <stdio.h>\n#include <pthread.h>\n#include <unistd.h>\n#include <stdlib.h>\n";
//private final static String LOCAL_INCLUDE_HEADER = "#include \"request.h\"\n#include \"syncchannel.h\"\n#include \"request_manager.h\"\n#include \"debug.h\"\n#include \"defs.h\"\n#include \"mytimelib.h\"\n#include \"random.h\"\n#include \"tracemanager.h\"\n#include \"main.h\" "; //--------#include \"request.h\"\n -----------
private final static String INCLUDE_HEADER = "#include <stdio.h>\n#include <unistd.h>\n#include <stdlib.h>\n";
private final static String LOCAL_INCLUDE_HEADER = "#include \"request.h\"\n#include \"syncchannel.h\"\n#include \"request_manager.h\"\n#include \"debug.h\"\n#include \"defs.h\"\n#include \"mytimelib.h\"\n#include \"random.h\"\n#include \"tracemanager.h\"\n#include \"main.h\"\n#include \"srl.h\"\n#include \"mwmr.h\"\n ";
private final static String CR = "\n";
private String name;
private String headerCode;
private String mainCode;
public TaskFileSoclib(String _name) {
name = _name;
headerCode = "";
mainCode = "";
}
public String getName() {
return name;
}
public String getFullHeaderCode() {
String s = "#ifndef " + name + "_H\n#define " + name + "_H\n";
s += INCLUDE_HEADER + CR + LOCAL_INCLUDE_HEADER + CR + CR;
s += headerCode;
s += "#endif\n";
return s;
}
public String getMainCode() {
return "#include \"" + name + ".h\"" + CR + CR + mainCode;
}
public void addToHeaderCode(String _code) {
headerCode += _code;
}
public void addToMainCode(String _code) {
mainCode += _code;
}
}
/* * @version 1.0 07/07/2015
* @author Julien Henon, Daniela Genius */
package ddtranslatorSoclib;
import java.util.*;
public class AvatarBridge extends AvatarComponent{
private String bridgeName;
private int nbConnectingPoint = 16;
AvatarConnectingPoint[] connectingPoints = new AvatarConnectingPoint[16];
public AvatarBridge(String _bridgeName) {
bridgeName = _bridgeName;
}
AvatarConnectingPoint[] getAvatarConnectingPoints(){
return connectingPoints;
}
int getnbConnectingPoint(){
return nbConnectingPoint;
}
void setConnectingPoint(int indexConnectingPoint, AvatarConnector connector){
return;
}
}
/* * @version 1.0 07/07/2015
* @author Julien Henon, Daniela Genius */
package ddtranslatorSoclib;
import java.util.*;
public class AvatarBus extends AvatarComponent{
private String busName;
private int nbOfAttachedInitiators;
private int nbOfAttachedTargets;
private int fifoDepth;
private int minLatency;
public AvatarBus(String _busName, int _nbOfAttachedInitiators,int _nbOfAttachedTargets, int _fifoDepth, int _minLatency ){
busName = _busName;
nbOfAttachedInitiators = _nbOfAttachedInitiators;
nbOfAttachedTargets = _nbOfAttachedTargets ;
fifoDepth = _fifoDepth ;
minLatency = _minLatency ;
}
public String getBusName(){
return busName;
}
public int getNbOfAttachedInitiators(){
return nbOfAttachedInitiators;
}
public int getnbOfAttachedTargets(){
return nbOfAttachedTargets;
}
public int getFifoDepth(){
return fifoDepth;
}
public int getMinLatency(){
return minLatency;
}
public void setNbOfAttachedInitiators(int nb){
nbOfAttachedInitiators = nb;
}
public void setnbOfAttachedTargets(int nb){
nbOfAttachedTargets = nb;
}
}
/* * @version 1.0 07/07/2015
* @author Julien Henon, Daniela Genius */
package ddtranslatorSoclib;
import java.util.*;
public class AvatarCPU extends AvatarComponent{
private String cpuName;
private int nbOfIRQs;
private int iCacheWays;
private int iCacheSets;
private int iCacheWords;
private int dCacheWays;
private int dCacheSets;
private int dCacheWords;
private int nb_init;
private int no_proc;
private LinkedList<AvatarTask> tasksMapped;
public AvatarCPU(String _cpuName, int _nbOfIRQs,int _ICacheWays, int _ICacheSets, int _ICacheWords, int _DCacheWays, int _DCacheSets, int _DCacheWords , int _nb_init , int _no_proc ){
cpuName = _cpuName;
nbOfIRQs = _nbOfIRQs;
iCacheWays = _ICacheWays;
iCacheSets = _ICacheSets;
iCacheWords = _ICacheWords;
dCacheWays = _DCacheWays;
dCacheSets = _DCacheSets;
dCacheWords = _DCacheWords;
nb_init = _nb_init;
no_proc = _no_proc;
tasksMapped = new LinkedList<AvatarTask>();
}
public int getNb_init(){
return nb_init;
}
public int getNo_proc(){
return no_proc;
}
public String getCpuName(){
return cpuName;
}
public int getNbOfIRQS(){
return nbOfIRQs;
}
public int getICacheWays(){
return iCacheWays;
}
public int getICacheSets(){
return iCacheSets;
}
public int getICacheWords(){
return iCacheWords;
}
public int getDCacheWays(){
return dCacheWays;
}
public int getDCacheSets(){
return dCacheSets;
}
public int getDCacheWords(){
return dCacheWords;
}
public LinkedList<AvatarTask> getAllTasks(){
return tasksMapped;
}
public void addTask(AvatarTask task){
tasksMapped.add(task);
}
}
/* * @version 1.0 07/07/2015
* @author Julien Henon, Daniela Genius */
package ddtranslatorSoclib;
public class AvatarChannel extends AvatarMappedObject{
private AvatarRAM avatarRAMReference;
private String referenceDiagram ;
private String channelName ;
public AvatarChannel(String _referenceDiagram, String _channelName, AvatarRAM _avatarRAMReference ){
referenceDiagram = _referenceDiagram;
channelName = _channelName;
avatarRAMReference = _avatarRAMReference;
}
public AvatarRAM getAvatarRAMReference(){
return avatarRAMReference;
}
public int getRAMNo(){
return avatarRAMReference.getNo_ram();
}
public String getReferenceDiagram(){
return referenceDiagram;
}
public String getChannelName(){
return channelName;
}
}
\ No newline at end of file
/* * @version 1.0 07/07/2015
* @author Julien Henon, Daniela Genius */
package ddtranslatorSoclib;
public abstract class AvatarComponent {
}
/* * @version 1.0 07/07/2015
* @author Julien Henon, Daniela Genius */
package ddtranslatorSoclib;
import java.util.*;
public class AvatarConnectingPoint{
AvatarConnector ownerConnector ;
AvatarComponent ownerComponent;
public AvatarConnectingPoint( AvatarComponent _ownerComponent)
{
ownerComponent = _ownerComponent;
}
AvatarConnector getConnector(){
return ownerConnector;
}
AvatarComponent getComponent(){
return ownerComponent;
}
void setConnector(AvatarConnector _connector){
ownerConnector = _connector;
}
boolean ConnectingPointIsFree(){
return ownerConnector == null;
}
}
\ No newline at end of file
/* * @version 1.0 07/07/2015
* @author Julien Henon, Daniela Genius */
package ddtranslatorSoclib;
import java.util.*;
public class AvatarConnector{
private AvatarConnectingPoint connectingPoint1;
private AvatarConnectingPoint connectingPoint2;
public AvatarConnector(AvatarConnectingPoint _connectingPoint1,AvatarConnectingPoint _connectingPoint2){
connectingPoint1 = _connectingPoint1;
connectingPoint2 = _connectingPoint2;
}
AvatarConnectingPoint getconectingPoint1(){
return connectingPoint2;
}
AvatarConnectingPoint getconectingPoint2(){
return connectingPoint2;
}
}
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
/* * @version 1.0 07/07/2015
* @author Julien Henon, Daniela Genius */
package ddtranslatorSoclib;
public abstract class AvatarMappedObject {
}
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.