Premier commit - inclusion dans le système git
This commit is contained in:
commit
040b45501a
4
.gitignore
vendored
Normal file
4
.gitignore
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
.classpath
|
||||
.project
|
||||
.settings
|
||||
bin/
|
||||
265
LeBernard.uml
Normal file
265
LeBernard.uml
Normal file
@ -0,0 +1,265 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<XMI xmi.version="1.2" timestamp="2019-03-29T20:57:23" verified="false" xmlns:UML="http://schema.omg.org/spec/UML/1.3">
|
||||
<XMI.header>
|
||||
<XMI.documentation>
|
||||
<XMI.exporter>umbrello uml modeller http://umbrello.kde.org</XMI.exporter>
|
||||
<XMI.exporterVersion>1.6.10</XMI.exporterVersion>
|
||||
<XMI.exporterEncoding>UnicodeUTF8</XMI.exporterEncoding>
|
||||
</XMI.documentation>
|
||||
<XMI.metamodel href="UML.xml" xmi.version="1.3" xmi.name="UML"/>
|
||||
</XMI.header>
|
||||
<XMI.content>
|
||||
<UML:Model isAbstract="false" xmi.id="m1" name="UML Model" isSpecification="false" isLeaf="false" isRoot="false">
|
||||
<UML:Namespace.ownedElement>
|
||||
<UML:Stereotype isAbstract="false" xmi.id="folder" visibility="public" name="folder" namespace="m1" isSpecification="false" isLeaf="false" isRoot="false"/>
|
||||
<UML:Stereotype isAbstract="false" xmi.id="datatype" visibility="public" name="datatype" namespace="m1" isSpecification="false" isLeaf="false" isRoot="false"/>
|
||||
<UML:Stereotype isAbstract="false" xmi.id="interface" visibility="public" name="interface" namespace="m1" isSpecification="false" isLeaf="false" isRoot="false"/>
|
||||
<UML:Model isAbstract="false" xmi.id="Logical View" visibility="public" name="Logical View" namespace="m1" isSpecification="false" isLeaf="false" isRoot="false">
|
||||
<UML:Namespace.ownedElement>
|
||||
<UML:Package isAbstract="false" xmi.id="Datatypes" visibility="public" name="Datatypes" namespace="Logical View" isSpecification="false" stereotype="folder" isLeaf="false" isRoot="false">
|
||||
<UML:Namespace.ownedElement>
|
||||
<UML:DataType isAbstract="false" xmi.id="afPCKmKoBpxu" visibility="public" name="char" namespace="Datatypes" isSpecification="false" stereotype="datatype" isLeaf="false" isRoot="false"/>
|
||||
<UML:DataType isAbstract="false" xmi.id="qh1wmVgxLqLR" visibility="public" name="int" namespace="Datatypes" isSpecification="false" stereotype="datatype" isLeaf="false" isRoot="false"/>
|
||||
<UML:DataType isAbstract="false" xmi.id="OIjlQrKnbD1g" visibility="public" name="float" namespace="Datatypes" isSpecification="false" stereotype="datatype" isLeaf="false" isRoot="false"/>
|
||||
<UML:DataType isAbstract="false" xmi.id="ZuGx8Rvl7QOf" visibility="public" name="double" namespace="Datatypes" isSpecification="false" stereotype="datatype" isLeaf="false" isRoot="false"/>
|
||||
<UML:DataType isAbstract="false" xmi.id="PhqQwWqEeUnA" visibility="public" name="bool" namespace="Datatypes" isSpecification="false" stereotype="datatype" isLeaf="false" isRoot="false"/>
|
||||
<UML:DataType isAbstract="false" xmi.id="Iz90Z7WAxl0D" visibility="public" name="string" namespace="Datatypes" isSpecification="false" stereotype="datatype" isLeaf="false" isRoot="false"/>
|
||||
<UML:DataType isAbstract="false" xmi.id="40XeAmt8YNOs" visibility="public" name="unsigned char" namespace="Datatypes" isSpecification="false" stereotype="datatype" isLeaf="false" isRoot="false"/>
|
||||
<UML:DataType isAbstract="false" xmi.id="GZPnDpZWQRGc" visibility="public" name="signed char" namespace="Datatypes" isSpecification="false" stereotype="datatype" isLeaf="false" isRoot="false"/>
|
||||
<UML:DataType isAbstract="false" xmi.id="tCG8ifF3V3v6" visibility="public" name="unsigned int" namespace="Datatypes" isSpecification="false" stereotype="datatype" isLeaf="false" isRoot="false"/>
|
||||
<UML:DataType isAbstract="false" xmi.id="XmxQr2lVL4Xu" visibility="public" name="signed int" namespace="Datatypes" isSpecification="false" stereotype="datatype" isLeaf="false" isRoot="false"/>
|
||||
<UML:DataType isAbstract="false" xmi.id="1VPgxwRYSjpc" visibility="public" name="short int" namespace="Datatypes" isSpecification="false" stereotype="datatype" isLeaf="false" isRoot="false"/>
|
||||
<UML:DataType isAbstract="false" xmi.id="GVo00PoCYL6c" visibility="public" name="unsigned short int" namespace="Datatypes" isSpecification="false" stereotype="datatype" isLeaf="false" isRoot="false"/>
|
||||
<UML:DataType isAbstract="false" xmi.id="jk41F8tMMCGz" visibility="public" name="signed short int" namespace="Datatypes" isSpecification="false" stereotype="datatype" isLeaf="false" isRoot="false"/>
|
||||
<UML:DataType isAbstract="false" xmi.id="dkKgsUGTKgY5" visibility="public" name="long int" namespace="Datatypes" isSpecification="false" stereotype="datatype" isLeaf="false" isRoot="false"/>
|
||||
<UML:DataType isAbstract="false" xmi.id="d5n1GXHPn3h7" visibility="public" name="signed long int" namespace="Datatypes" isSpecification="false" stereotype="datatype" isLeaf="false" isRoot="false"/>
|
||||
<UML:DataType isAbstract="false" xmi.id="XL1r84Rk4XdP" visibility="public" name="unsigned long int" namespace="Datatypes" isSpecification="false" stereotype="datatype" isLeaf="false" isRoot="false"/>
|
||||
<UML:DataType isAbstract="false" xmi.id="aJ2Biyroex2f" visibility="public" name="long double" namespace="Datatypes" isSpecification="false" stereotype="datatype" isLeaf="false" isRoot="false"/>
|
||||
<UML:DataType isAbstract="false" xmi.id="SmxOMTPylo3h" visibility="public" name="wchar_t" namespace="Datatypes" isSpecification="false" stereotype="datatype" isLeaf="false" isRoot="false"/>
|
||||
<UML:DataType isAbstract="false" xmi.id="ig5YqsMecnIg" visibility="public" name="List<Boiboite>" namespace="Datatypes" elementReference="VsXhEyRwcWs2" isSpecification="false" stereotype="datatype" isLeaf="false" isRoot="false"/>
|
||||
<UML:DataType isAbstract="false" xmi.id="9KMTfRqVDZ7q" visibility="public" name="List<Parameter>" namespace="Datatypes" elementReference="VsXhEyRwcWs2" isSpecification="false" stereotype="datatype" isLeaf="false" isRoot="false"/>
|
||||
<UML:DataType isAbstract="false" xmi.id="nOzLmRAQTc20" visibility="public" name="List<Attribute>" namespace="Datatypes" elementReference="VsXhEyRwcWs2" isSpecification="false" stereotype="datatype" isLeaf="false" isRoot="false"/>
|
||||
</UML:Namespace.ownedElement>
|
||||
</UML:Package>
|
||||
<UML:Class isAbstract="false" xmi.id="4yDjGGyh2vC9" visibility="public" name="Boiboite" namespace="Logical View" isSpecification="false" isLeaf="false" isRoot="false">
|
||||
<UML:Classifier.feature>
|
||||
<UML:Attribute xmi.id="y1aQUc3CKHKW" visibility="private" name="attributes" isSpecification="false" type="nOzLmRAQTc20"/>
|
||||
</UML:Classifier.feature>
|
||||
</UML:Class>
|
||||
<UML:Class isAbstract="false" xmi.id="w7Nib9sxggdr" visibility="public" name="Cartographe" namespace="Logical View" isSpecification="false" isLeaf="false" isRoot="false">
|
||||
<UML:Classifier.feature>
|
||||
<UML:Attribute xmi.id="kSzXunbhd3Ya" visibility="private" name="loadedBoiboites" isSpecification="false" type="ig5YqsMecnIg"/>
|
||||
</UML:Classifier.feature>
|
||||
</UML:Class>
|
||||
<UML:Class isAbstract="false" xmi.id="RhSkwt4kIgB1" visibility="public" name="Fonction" namespace="Logical View" isSpecification="false" isLeaf="false" isRoot="false">
|
||||
<UML:Classifier.feature>
|
||||
<UML:Attribute xmi.id="cOk3sYynu6IE" visibility="private" name="entrées" isSpecification="false" type="9KMTfRqVDZ7q"/>
|
||||
<UML:Attribute xmi.id="5KeuJgE8P2Wz" visibility="private" name="sortie" isSpecification="false" type="4yDjGGyh2vC9"/>
|
||||
</UML:Classifier.feature>
|
||||
</UML:Class>
|
||||
<UML:Class isAbstract="false" xmi.id="AgtL6xMPV1Dc" visibility="public" name="Parameter" namespace="Logical View" isSpecification="false" isLeaf="false" isRoot="false">
|
||||
<UML:Classifier.feature>
|
||||
<UML:Attribute xmi.id="HjtK4ZfwVvJr" visibility="private" name="type" isSpecification="false" type="4yDjGGyh2vC9"/>
|
||||
</UML:Classifier.feature>
|
||||
</UML:Class>
|
||||
<UML:Interface isAbstract="true" xmi.id="grTJrYHO7xN5" visibility="public" name="Taggable" namespace="Logical View" isSpecification="false" stereotype="interface" isLeaf="false" isRoot="false">
|
||||
<UML:Classifier.feature>
|
||||
<UML:Operation isAbstract="false" xmi.id="3F3580PSCFaT" visibility="public" name="getTags" isQuery="false" isSpecification="false" isLeaf="false" isRoot="false"/>
|
||||
</UML:Classifier.feature>
|
||||
</UML:Interface>
|
||||
<UML:Class isAbstract="false" xmi.id="VsXhEyRwcWs2" visibility="public" name="List" namespace="Logical View" isSpecification="false" isLeaf="false" isRoot="false"/>
|
||||
<UML:Dependency xmi.id="ZDQj5uzq7O92" visibility="public" name="" namespace="Logical View" supplier="4yDjGGyh2vC9" client="w7Nib9sxggdr" isSpecification="false"/>
|
||||
<UML:Dependency xmi.id="3Ps0vkW2ELCi" visibility="public" name="" namespace="Logical View" supplier="AgtL6xMPV1Dc" client="RhSkwt4kIgB1" isSpecification="false"/>
|
||||
<UML:Association xmi.id="PvmOZvCDXVWF" visibility="public" name="" namespace="Logical View" isSpecification="false">
|
||||
<UML:Association.connection>
|
||||
<UML:AssociationEnd xmi.id="YO5EM5dVxxwz" visibility="public" isNavigable="true" name="" isSpecification="false" changeability="changeable" type="4yDjGGyh2vC9" aggregation="aggregate"/>
|
||||
<UML:AssociationEnd xmi.id="BHm1OaX1kiQu" visibility="public" isNavigable="true" name="" isSpecification="false" changeability="changeable" type="AgtL6xMPV1Dc" aggregation="none"/>
|
||||
</UML:Association.connection>
|
||||
</UML:Association>
|
||||
<UML:Association xmi.id="AcE8F1mt5qxI" visibility="public" name="" namespace="Logical View" isSpecification="false">
|
||||
<UML:Association.connection>
|
||||
<UML:AssociationEnd xmi.id="chdSyiodtAuK" visibility="public" isNavigable="true" name="" isSpecification="false" changeability="changeable" type="AgtL6xMPV1Dc" aggregation="aggregate"/>
|
||||
<UML:AssociationEnd xmi.id="0dC0BDSrTyg7" visibility="public" isNavigable="true" name="" isSpecification="false" changeability="changeable" type="RhSkwt4kIgB1" aggregation="none"/>
|
||||
</UML:Association.connection>
|
||||
</UML:Association>
|
||||
<UML:Association xmi.id="Hq3VowuT6VDU" visibility="public" name="" namespace="Logical View" isSpecification="false">
|
||||
<UML:Association.connection>
|
||||
<UML:AssociationEnd xmi.id="EsuE27ntsUf1" visibility="public" isNavigable="true" name="" isSpecification="false" changeability="changeable" type="4yDjGGyh2vC9" aggregation="composite"/>
|
||||
<UML:AssociationEnd xmi.id="oGCXfw0I0FVA" visibility="public" isNavigable="true" name="" isSpecification="false" changeability="changeable" type="w7Nib9sxggdr" aggregation="none"/>
|
||||
</UML:Association.connection>
|
||||
</UML:Association>
|
||||
<UML:Abstraction xmi.id="slhYf1LHPiyk" visibility="public" name="" namespace="Logical View" supplier="grTJrYHO7xN5" client="AgtL6xMPV1Dc" isSpecification="false"/>
|
||||
<UML:Abstraction xmi.id="lYOa1zj4TRbv" visibility="public" name="" namespace="Logical View" supplier="grTJrYHO7xN5" client="RhSkwt4kIgB1" isSpecification="false"/>
|
||||
<UML:Abstraction xmi.id="qPvaly7BR97w" visibility="public" name="" namespace="Logical View" supplier="grTJrYHO7xN5" client="4yDjGGyh2vC9" isSpecification="false"/>
|
||||
<UML:Class isAbstract="false" xmi.id="ORK52tXKgdwJ" visibility="public" name="Attribute" namespace="Logical View" isSpecification="false" isLeaf="false" isRoot="false">
|
||||
<UML:Classifier.feature>
|
||||
<UML:Attribute xmi.id="S2Nfu4uunnlb" visibility="private" name="type" isSpecification="false" type="4yDjGGyh2vC9"/>
|
||||
</UML:Classifier.feature>
|
||||
</UML:Class>
|
||||
<UML:Abstraction xmi.id="F9GvbBPAorTQ" visibility="public" name="" namespace="Logical View" supplier="grTJrYHO7xN5" client="ORK52tXKgdwJ" isSpecification="false"/>
|
||||
<UML:Dependency xmi.id="NIqr5YZmxaB4" visibility="public" name="" namespace="Logical View" supplier="ORK52tXKgdwJ" client="4yDjGGyh2vC9" isSpecification="false"/>
|
||||
<UML:Dependency xmi.id="qtngB7tEBoM3" visibility="public" name="" namespace="Logical View" supplier="grTJrYHO7xN5" client="w7Nib9sxggdr" isSpecification="false"/>
|
||||
<UML:Class isAbstract="false" xmi.id="BRdip0db3QbN" visibility="public" name="Truc" namespace="Logical View" isSpecification="false" isLeaf="false" isRoot="false"/>
|
||||
</UML:Namespace.ownedElement>
|
||||
<XMI.extension xmi.extender="umbrello">
|
||||
<diagrams>
|
||||
<diagram backgroundcolor="#ffffff" font="DejaVu Sans,9,-1,5,50,0,0,0,0,0" isopen="1" linewidth="0" showatts="1" textcolor="#000000" usefillcolor="1" canvaswidth="948" fillcolor="#ffff00" showpackage="1" canvasheight="584" documentation="" type="1" showpubliconly="0" showattsig="1" showstereotype="1" zoom="100" showscope="1" showopsig="1" griddotcolor="#d3d3d3" linecolor="#ff0000" xmi.id="IGqLDh48P3YJ" localid="-1" snapgrid="0" showgrid="0" snapy="25" name="class diagram" showattribassocs="1" snapx="25" showops="1" snapcsgrid="0">
|
||||
<widgets>
|
||||
<classwidget x="-336" font="DejaVu Sans,9,-1,5,50,0,0,0,0,0" linewidth="0" textcolor="#000000" showattsigs="601" usefillcolor="1" showoperations="1" fillcolor="#ffff00" showpackage="1" isinstance="0" height="40" showpubliconly="0" showattributes="1" usesdiagramfillcolor="0" showstereotype="1" usesdiagramusefillcolor="0" y="-159" showscope="1" showopsigs="601" width="598" linecolor="#ff0000" xmi.id="4yDjGGyh2vC9" localid="gZclA4xmx9z7"/>
|
||||
<classwidget x="-419" font="DejaVu Sans,9,-1,5,50,0,0,0,0,0" linewidth="0" textcolor="#000000" showattsigs="601" usefillcolor="1" showoperations="1" fillcolor="#ffff00" showpackage="1" isinstance="0" height="35" showpubliconly="0" showattributes="1" usesdiagramfillcolor="0" showstereotype="1" usesdiagramusefillcolor="0" y="-435" showscope="1" showopsigs="601" width="223" linecolor="#ff0000" xmi.id="w7Nib9sxggdr" localid="gp3gZmJyJUDx"/>
|
||||
<classwidget x="129" font="DejaVu Sans,9,-1,5,50,0,0,0,0,0" linewidth="0" textcolor="#000000" showattsigs="601" usefillcolor="1" showoperations="1" fillcolor="#ffff00" showpackage="1" isinstance="0" height="49" showpubliconly="0" showattributes="1" usesdiagramfillcolor="0" showstereotype="1" usesdiagramusefillcolor="0" y="-388" showscope="1" showopsigs="601" width="186" linecolor="#ff0000" xmi.id="RhSkwt4kIgB1" localid="sOqrSfiQ575x"/>
|
||||
<classwidget x="-240" font="DejaVu Sans,9,-1,5,50,0,0,0,0,0" linewidth="0" textcolor="#000000" showattsigs="601" usefillcolor="1" showoperations="1" fillcolor="#ffff00" showpackage="1" isinstance="0" height="35" showpubliconly="0" showattributes="1" usesdiagramfillcolor="0" showstereotype="1" usesdiagramusefillcolor="0" y="-287" showscope="1" showopsigs="601" width="108" linecolor="#ff0000" xmi.id="AgtL6xMPV1Dc" localid="OzxqBTGIW5z5"/>
|
||||
<interfacewidget x="-154.5" font="DejaVu Sans,9,-1,5,50,0,0,0,0,0" linewidth="0" textcolor="#000000" drawascircle="0" showattsigs="601" usefillcolor="1" showoperations="1" fillcolor="#ffff00" showpackage="1" isinstance="0" height="56" showpubliconly="0" showattributes="0" usesdiagramfillcolor="0" showstereotype="1" usesdiagramusefillcolor="0" y="-438.5" showscope="1" showopsigs="601" width="171" linecolor="#ff0000" xmi.id="grTJrYHO7xN5" localid="6NjA5qcGOKpB"/>
|
||||
<classwidget x="-68" font="DejaVu Sans,9,-1,5,50,0,0,0,0,0" linewidth="0" textcolor="#000000" showattsigs="601" usefillcolor="1" showoperations="1" fillcolor="#ffff00" showpackage="1" isinstance="0" height="35" showpubliconly="0" showattributes="1" usesdiagramfillcolor="0" showstereotype="1" usesdiagramusefillcolor="0" y="-334" showscope="1" showopsigs="601" width="96" linecolor="#ff0000" xmi.id="ORK52tXKgdwJ" localid="INzMZUt5jJid"/>
|
||||
<classwidget x="113" font="DejaVu Sans,9,-1,5,50,0,0,0,0,0" linewidth="0" textcolor="#000000" showattsigs="601" usefillcolor="1" showoperations="1" fillcolor="#ffff00" showpackage="1" isinstance="0" height="28" showpubliconly="0" showattributes="1" usesdiagramfillcolor="0" showstereotype="1" usesdiagramusefillcolor="0" y="-493" showscope="1" showopsigs="601" width="40" linecolor="#ff0000" xmi.id="BRdip0db3QbN" localid="M1GPW0iSNxdN"/>
|
||||
</widgets>
|
||||
<messages/>
|
||||
<associations>
|
||||
<assocwidget linewidth="0" seqnum="" xmi.id="Hq3VowuT6VDU" textcolor="none" usefillcolor="1" widgetbid="w7Nib9sxggdr" totalcounta="2" linecolor="#ff0000" usesdiagramfillcolor="0" widgetaid="4yDjGGyh2vC9" usesdiagramusefillcolor="224" indexa="1" indexb="1" type="510" font="Sans,9,-1,5,50,0,0,0,0,0" fillcolor="#ffff00" totalcountb="2">
|
||||
<linepath layout="Polyline">
|
||||
<startpoint startx="-267" starty="-159"/>
|
||||
<endpoint endy="-400" endx="-267"/>
|
||||
</linepath>
|
||||
</assocwidget>
|
||||
<assocwidget font="Sans,9,-1,5,50,0,0,0,0,0" changeabilityA="900" linewidth="0" textcolor="#000000" usefillcolor="1" visibilityA="1" fillcolor="#ffff00" type="501" usesdiagramfillcolor="0" indexb="0" usesdiagramusefillcolor="0" seqnum="" changeabilityB="900" widgetbid="4yDjGGyh2vC9" widgetaid="4yDjGGyh2vC9" linecolor="#ff0000" xmi.id="y1aQUc3CKHKW" indexa="0" totalcountb="0" totalcounta="0" visibilityB="1">
|
||||
<linepath layout="Polyline">
|
||||
<startpoint startx="-186.5" starty="-119"/>
|
||||
<endpoint endy="-119" endx="112.5"/>
|
||||
<point y="-69" x="-186.5"/>
|
||||
<point y="-69" x="112.5"/>
|
||||
</linepath>
|
||||
<floatingtext x="-25.75" font="DejaVu Sans,9,-1,5,50,0,0,0,0,0" linewidth="0" textcolor="none" usefillcolor="1" fillcolor="none" isinstance="0" height="18" pretext="-" usesdiagramfillcolor="1" showstereotype="1" usesdiagramusefillcolor="1" y="-117" role="710" width="65" text="attributes" linecolor="#ff0000" xmi.id="X9syVFCVUPW6" localid="ZMZxzGUJABY9" posttext=""/>
|
||||
</assocwidget>
|
||||
<assocwidget linewidth="0" seqnum="" xmi.id="slhYf1LHPiyk" textcolor="none" usefillcolor="1" widgetbid="grTJrYHO7xN5" totalcounta="2" linecolor="#ff0000" usesdiagramfillcolor="0" widgetaid="AgtL6xMPV1Dc" usesdiagramusefillcolor="32" indexa="1" indexb="1" type="511" font="Sans,9,-1,5,50,0,0,0,0,0" fillcolor="#ffff00" totalcountb="2">
|
||||
<linepath layout="Polyline">
|
||||
<startpoint startx="-132" starty="-287"/>
|
||||
<endpoint endy="-382.5" endx="-132"/>
|
||||
</linepath>
|
||||
</assocwidget>
|
||||
<assocwidget font="Sans,9,-1,5,50,0,0,0,0,0" changeabilityA="900" linewidth="0" textcolor="#000000" usefillcolor="1" visibilityA="1" fillcolor="#ffff00" type="501" usesdiagramfillcolor="0" indexb="1" usesdiagramusefillcolor="0" seqnum="" changeabilityB="900" widgetbid="4yDjGGyh2vC9" widgetaid="AgtL6xMPV1Dc" linecolor="#ff0000" xmi.id="HjtK4ZfwVvJr" indexa="1" totalcountb="2" totalcounta="2" visibilityB="1">
|
||||
<linepath layout="Polyline">
|
||||
<startpoint startx="-173" starty="-252"/>
|
||||
<endpoint endy="-159" endx="-173"/>
|
||||
</linepath>
|
||||
</assocwidget>
|
||||
<assocwidget linewidth="0" seqnum="" xmi.id="qPvaly7BR97w" textcolor="none" usefillcolor="1" widgetbid="grTJrYHO7xN5" totalcounta="2" linecolor="#ff0000" usesdiagramfillcolor="0" widgetaid="4yDjGGyh2vC9" usesdiagramusefillcolor="0" indexa="1" indexb="1" type="511" font="Sans,9,-1,5,50,0,0,0,0,0" fillcolor="#ffff00" totalcountb="2">
|
||||
<linepath layout="Polyline">
|
||||
<startpoint startx="-79.5" starty="-159"/>
|
||||
<endpoint endy="-382.5" endx="-79.5"/>
|
||||
</linepath>
|
||||
</assocwidget>
|
||||
<assocwidget linewidth="0" seqnum="" xmi.id="F9GvbBPAorTQ" textcolor="none" usefillcolor="1" widgetbid="grTJrYHO7xN5" totalcounta="2" linecolor="#ff0000" usesdiagramfillcolor="0" widgetaid="ORK52tXKgdwJ" usesdiagramusefillcolor="240" indexa="1" indexb="1" type="511" font="Sans,9,-1,5,50,0,0,0,0,0" fillcolor="#ffff00" totalcountb="2">
|
||||
<linepath layout="Polyline">
|
||||
<startpoint startx="-39" starty="-334"/>
|
||||
<endpoint endy="-382.5" endx="-39"/>
|
||||
</linepath>
|
||||
</assocwidget>
|
||||
<assocwidget font="Sans,9,-1,5,50,0,0,0,0,0" changeabilityA="900" linewidth="0" textcolor="#000000" usefillcolor="1" visibilityA="1" fillcolor="#ffff00" type="501" usesdiagramfillcolor="0" indexb="1" usesdiagramusefillcolor="0" seqnum="" changeabilityB="900" widgetbid="4yDjGGyh2vC9" widgetaid="RhSkwt4kIgB1" linecolor="#ff0000" xmi.id="5KeuJgE8P2Wz" indexa="1" totalcountb="2" totalcounta="2" visibilityB="1">
|
||||
<linepath layout="Polyline">
|
||||
<startpoint startx="129" starty="-339"/>
|
||||
<endpoint endy="-159" endx="129"/>
|
||||
</linepath>
|
||||
<floatingtext x="83" font="DejaVu Sans,9,-1,5,50,0,0,0,0,0" linewidth="0" textcolor="none" usefillcolor="1" fillcolor="none" isinstance="0" height="18" pretext="-" usesdiagramfillcolor="1" showstereotype="1" usesdiagramusefillcolor="1" y="-179" role="710" width="43" text="sortie" linecolor="#ff0000" xmi.id="jSVFQqmPJ1H9" localid="NLtdIYt8U3mw" posttext=""/>
|
||||
</assocwidget>
|
||||
<assocwidget font="DejaVu Sans,9,-1,5,50,0,0,0,0,0" changeabilityA="900" linewidth="0" textcolor="#000000" usefillcolor="1" visibilityA="1" fillcolor="#ffff00" type="501" usesdiagramfillcolor="0" indexb="1" usesdiagramusefillcolor="0" seqnum="" changeabilityB="900" widgetbid="4yDjGGyh2vC9" widgetaid="ORK52tXKgdwJ" linecolor="#ff0000" xmi.id="S2Nfu4uunnlb" indexa="1" totalcountb="2" totalcounta="2" visibilityB="1">
|
||||
<linepath layout="Polyline">
|
||||
<startpoint startx="-39" starty="-299"/>
|
||||
<endpoint endy="-159" endx="-39"/>
|
||||
</linepath>
|
||||
<floatingtext x="-76" font="Sans,9,-1,5,50,0,0,0,0,0" linewidth="0" textcolor="none" usefillcolor="1" fillcolor="none" isinstance="0" height="18" pretext="-" usesdiagramfillcolor="1" showstereotype="1" usesdiagramusefillcolor="1" y="-179" role="710" width="39" text="type" linecolor="#ff0000" xmi.id="N3htsQOgiY4F" localid="D5zc0PTB4hOv" posttext=""/>
|
||||
</assocwidget>
|
||||
<assocwidget linewidth="0" seqnum="" xmi.id="qtngB7tEBoM3" textcolor="none" usefillcolor="1" widgetbid="grTJrYHO7xN5" totalcounta="2" linecolor="#ff0000" usesdiagramfillcolor="0" widgetaid="w7Nib9sxggdr" usesdiagramusefillcolor="1" indexa="1" indexb="1" type="502" font="DejaVu Sans,9,-1,5,50,0,0,0,0,0" fillcolor="#ffff00" totalcountb="2">
|
||||
<linepath layout="Polyline">
|
||||
<startpoint startx="-196" starty="-420"/>
|
||||
<endpoint endy="-420" endx="-154.5"/>
|
||||
</linepath>
|
||||
</assocwidget>
|
||||
<assocwidget font="DejaVu Sans,9,-1,5,50,0,0,0,0,0" changeabilityA="900" linewidth="0" textcolor="none" usefillcolor="1" visibilityA="1" fillcolor="none" type="510" usesdiagramfillcolor="63" indexb="1" usesdiagramusefillcolor="0" seqnum="" changeabilityB="900" widgetbid="4yDjGGyh2vC9" widgetaid="AgtL6xMPV1Dc" linecolor="#ff0000" xmi.id="HjtK4ZfwVvJr" indexa="1" totalcountb="2" totalcounta="2" visibilityB="1">
|
||||
<linepath layout="Polyline">
|
||||
<startpoint startx="-240" starty="-252"/>
|
||||
<endpoint endy="-159" endx="-240"/>
|
||||
</linepath>
|
||||
<floatingtext x="-277" font="Sans,9,-1,5,50,0,0,0,0,0" linewidth="0" textcolor="none" usefillcolor="1" fillcolor="none" isinstance="0" height="18" pretext="-" usesdiagramfillcolor="1" showstereotype="1" usesdiagramusefillcolor="1" y="-179" role="710" width="39" text="type" linecolor="#ff0000" xmi.id="dy2udypUgxdJ" localid="vIbzQ1L1vNKm" posttext=""/>
|
||||
</assocwidget>
|
||||
</associations>
|
||||
</diagram>
|
||||
</diagrams>
|
||||
</XMI.extension>
|
||||
</UML:Model>
|
||||
<UML:Model isAbstract="false" xmi.id="Use Case View" visibility="public" name="Use Case View" namespace="m1" isSpecification="false" isLeaf="false" isRoot="false">
|
||||
<UML:Namespace.ownedElement/>
|
||||
</UML:Model>
|
||||
<UML:Model isAbstract="false" xmi.id="Component View" visibility="public" name="Component View" namespace="m1" isSpecification="false" isLeaf="false" isRoot="false">
|
||||
<UML:Namespace.ownedElement/>
|
||||
</UML:Model>
|
||||
<UML:Model isAbstract="false" xmi.id="Deployment View" visibility="public" name="Deployment View" namespace="m1" isSpecification="false" isLeaf="false" isRoot="false">
|
||||
<UML:Namespace.ownedElement/>
|
||||
</UML:Model>
|
||||
<UML:Model isAbstract="false" xmi.id="Entity Relationship Model" visibility="public" name="Entity Relationship Model" namespace="m1" isSpecification="false" isLeaf="false" isRoot="false">
|
||||
<UML:Namespace.ownedElement/>
|
||||
</UML:Model>
|
||||
</UML:Namespace.ownedElement>
|
||||
</UML:Model>
|
||||
</XMI.content>
|
||||
<XMI.extensions xmi.extender="umbrello">
|
||||
<docsettings viewid="IGqLDh48P3YJ" documentation="" uniqueid="dy2udypUgxdJ"/>
|
||||
<listview>
|
||||
<listitem open="1" id="Views" type="800">
|
||||
<listitem open="1" id="Component View" type="821"/>
|
||||
<listitem open="1" id="Deployment View" type="827"/>
|
||||
<listitem open="1" id="Entity Relationship Model" type="836"/>
|
||||
<listitem open="1" id="Logical View" type="801">
|
||||
<listitem open="1" id="ORK52tXKgdwJ" type="813">
|
||||
<listitem open="0" id="S2Nfu4uunnlb" type="814"/>
|
||||
</listitem>
|
||||
<listitem open="1" id="4yDjGGyh2vC9" type="813">
|
||||
<listitem open="0" id="y1aQUc3CKHKW" type="814"/>
|
||||
</listitem>
|
||||
<listitem open="1" id="w7Nib9sxggdr" type="813">
|
||||
<listitem open="0" id="kSzXunbhd3Ya" type="814"/>
|
||||
</listitem>
|
||||
<listitem open="0" id="IGqLDh48P3YJ" type="807" label="class diagram"/>
|
||||
<listitem open="1" id="Datatypes" type="830">
|
||||
<listitem open="1" id="PhqQwWqEeUnA" type="829"/>
|
||||
<listitem open="1" id="afPCKmKoBpxu" type="829"/>
|
||||
<listitem open="1" id="ZuGx8Rvl7QOf" type="829"/>
|
||||
<listitem open="1" id="OIjlQrKnbD1g" type="829"/>
|
||||
<listitem open="1" id="qh1wmVgxLqLR" type="829"/>
|
||||
<listitem open="1" id="nOzLmRAQTc20" type="829"/>
|
||||
<listitem open="1" id="ig5YqsMecnIg" type="829"/>
|
||||
<listitem open="1" id="9KMTfRqVDZ7q" type="829"/>
|
||||
<listitem open="1" id="aJ2Biyroex2f" type="829"/>
|
||||
<listitem open="1" id="dkKgsUGTKgY5" type="829"/>
|
||||
<listitem open="1" id="1VPgxwRYSjpc" type="829"/>
|
||||
<listitem open="1" id="GZPnDpZWQRGc" type="829"/>
|
||||
<listitem open="1" id="XmxQr2lVL4Xu" type="829"/>
|
||||
<listitem open="1" id="d5n1GXHPn3h7" type="829"/>
|
||||
<listitem open="1" id="jk41F8tMMCGz" type="829"/>
|
||||
<listitem open="1" id="Iz90Z7WAxl0D" type="829"/>
|
||||
<listitem open="1" id="40XeAmt8YNOs" type="829"/>
|
||||
<listitem open="1" id="tCG8ifF3V3v6" type="829"/>
|
||||
<listitem open="1" id="XL1r84Rk4XdP" type="829"/>
|
||||
<listitem open="1" id="GVo00PoCYL6c" type="829"/>
|
||||
<listitem open="1" id="SmxOMTPylo3h" type="829"/>
|
||||
</listitem>
|
||||
<listitem open="1" id="RhSkwt4kIgB1" type="813">
|
||||
<listitem open="0" id="cOk3sYynu6IE" type="814"/>
|
||||
<listitem open="0" id="5KeuJgE8P2Wz" type="814"/>
|
||||
</listitem>
|
||||
<listitem open="1" id="VsXhEyRwcWs2" type="813"/>
|
||||
<listitem open="1" id="AgtL6xMPV1Dc" type="813">
|
||||
<listitem open="0" id="HjtK4ZfwVvJr" type="814"/>
|
||||
</listitem>
|
||||
<listitem open="1" id="grTJrYHO7xN5" type="817">
|
||||
<listitem open="0" id="3F3580PSCFaT" type="815"/>
|
||||
</listitem>
|
||||
<listitem open="1" id="BRdip0db3QbN" type="813"/>
|
||||
</listitem>
|
||||
<listitem open="1" id="Use Case View" type="802"/>
|
||||
</listitem>
|
||||
</listview>
|
||||
<codegeneration>
|
||||
<codegenerator language="C++"/>
|
||||
</codegeneration>
|
||||
</XMI.extensions>
|
||||
</XMI>
|
||||
9
bernard1.bernard
Normal file
9
bernard1.bernard
Normal file
@ -0,0 +1,9 @@
|
||||
difficulté = demander('quelle difficulté ?')
|
||||
àDeviner = random(entier,[0;difficulté])
|
||||
jusqu'à (réponse = àDeviner){
|
||||
réponse = demander("Votre proposition ?")
|
||||
Si réponse < àDeviner, dire("C'est plus")
|
||||
Sinon, dire ("C'est moins")
|
||||
}
|
||||
dire("Félicitation! Tu as perdu $System.execTime secondes de ta vie (mais avec succès)")
|
||||
# Ceci est la fin du programme
|
||||
BIN
class diagram.png
Normal file
BIN
class diagram.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 14 KiB |
28
src/com/bernard/lebernard/MainDeDieu.java
Normal file
28
src/com/bernard/lebernard/MainDeDieu.java
Normal file
@ -0,0 +1,28 @@
|
||||
package com.bernard.lebernard;
|
||||
|
||||
import com.bernard.lebernard.carte.Boiboite;
|
||||
import com.bernard.lebernard.carte.FonctionHard;
|
||||
import com.bernard.lebernard.runtime.Arguments;
|
||||
import com.bernard.lebernard.runtime.Referencateur;
|
||||
|
||||
public class MainDeDieu {
|
||||
|
||||
public static Boiboite chaineDeCaracteres = new Boiboite();
|
||||
|
||||
public static void main(String[] args) {
|
||||
Referencateur.self = new Referencateur();
|
||||
}
|
||||
|
||||
|
||||
public static class FonctionAfficher implements FonctionHard{
|
||||
|
||||
@Override
|
||||
public String execute(Arguments args) {
|
||||
byte[] data = args.getRealParameterTruc(1).getData();
|
||||
System.out.println(new String(data));
|
||||
return null;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
5
src/com/bernard/lebernard/carte/Boiboite.java
Normal file
5
src/com/bernard/lebernard/carte/Boiboite.java
Normal file
@ -0,0 +1,5 @@
|
||||
package com.bernard.lebernard.carte;
|
||||
|
||||
public class Boiboite {
|
||||
|
||||
}
|
||||
7
src/com/bernard/lebernard/carte/Fonction.java
Normal file
7
src/com/bernard/lebernard/carte/Fonction.java
Normal file
@ -0,0 +1,7 @@
|
||||
package com.bernard.lebernard.carte;
|
||||
|
||||
import com.bernard.lebernard.runtime.Arguments;
|
||||
|
||||
public interface Fonction {
|
||||
public String execute(Arguments args);
|
||||
}
|
||||
73
src/com/bernard/lebernard/carte/FonctionComplexe.java
Normal file
73
src/com/bernard/lebernard/carte/FonctionComplexe.java
Normal file
@ -0,0 +1,73 @@
|
||||
package com.bernard.lebernard.carte;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
import java.util.UUID;
|
||||
import java.util.stream.Collectors;
|
||||
import java.util.stream.IntStream;
|
||||
|
||||
import com.bernard.lebernard.runtime.Arguments;
|
||||
import com.bernard.lebernard.runtime.Referencateur;
|
||||
|
||||
public class FonctionComplexe implements Fonction {
|
||||
|
||||
List<Fonction> executionList;
|
||||
Set<Liant> liants;
|
||||
List<Set<Liant>> parameters; //Pour chaque paramètre existant, la liste des liens aux autres fonctions (InIndex nul)
|
||||
int returnIndex;
|
||||
|
||||
@Override
|
||||
public String execute(Arguments args) {
|
||||
|
||||
List<String> argRefs = args.getRealParametersRefs();
|
||||
String fonctionRefUUID = UUID.randomUUID().toString();
|
||||
|
||||
Map<Integer,String>[] arguments = new HashMap[executionList.size()];
|
||||
for (int i = 0; i < arguments.length; i++) arguments[i] = new HashMap<Integer,String>();
|
||||
|
||||
for(Liant l : liants) arguments[l.outIndex].put(l.paramIndex, fonctionRefUUID+"#"+l.inIndex);
|
||||
|
||||
for (int i = 0; i < arguments.length; i++)
|
||||
for(Liant l : parameters.get(i))
|
||||
arguments[l.outIndex].put(l.paramIndex, argRefs.get(i));
|
||||
|
||||
for (int i = 0; i < executionList.size(); i++) {
|
||||
String ref = executionList.get(i).execute(new Arguments(IntStream.range(0, arguments[i].size()).mapToObj(arguments[i]::get).collect(Collectors.toList())));
|
||||
Referencateur.self.link(ref,fonctionRefUUID+"#"+i);
|
||||
}
|
||||
|
||||
return fonctionRefUUID+"#"+returnIndex;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
public static class Liant{
|
||||
int inIndex,outIndex,paramIndex;
|
||||
|
||||
public int getInIndex() {
|
||||
return inIndex;
|
||||
}
|
||||
|
||||
public int getOutIndex() {
|
||||
return outIndex;
|
||||
}
|
||||
|
||||
public int getParamIndex() {
|
||||
return paramIndex;
|
||||
}
|
||||
|
||||
public Liant(int inIndex, int outIndex, int paramIndex) {
|
||||
this.inIndex = inIndex;
|
||||
this.outIndex = outIndex;
|
||||
this.paramIndex = paramIndex;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
5
src/com/bernard/lebernard/carte/FonctionHard.java
Normal file
5
src/com/bernard/lebernard/carte/FonctionHard.java
Normal file
@ -0,0 +1,5 @@
|
||||
package com.bernard.lebernard.carte;
|
||||
|
||||
public interface FonctionHard extends Fonction {
|
||||
|
||||
}
|
||||
13
src/com/bernard/lebernard/lecteur/Lecteur.java
Normal file
13
src/com/bernard/lebernard/lecteur/Lecteur.java
Normal file
@ -0,0 +1,13 @@
|
||||
package com.bernard.lebernard.lecteur;
|
||||
|
||||
import java.io.File;
|
||||
|
||||
import com.bernard.lebernard.carte.Fonction;
|
||||
|
||||
public class Lecteur {
|
||||
|
||||
public static Fonction lireFichier(File f) {
|
||||
//TODO
|
||||
}
|
||||
|
||||
}
|
||||
26
src/com/bernard/lebernard/runtime/Arguments.java
Normal file
26
src/com/bernard/lebernard/runtime/Arguments.java
Normal file
@ -0,0 +1,26 @@
|
||||
package com.bernard.lebernard.runtime;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public class Arguments {
|
||||
|
||||
public Arguments(List<String> realArgsReferences) {
|
||||
this.realArgsReferences = realArgsReferences;
|
||||
}
|
||||
|
||||
List<String> realArgsReferences;
|
||||
|
||||
public Truc getRealParameterTruc(int i) {
|
||||
return Referencateur.self.getTruc(realArgsReferences.get(0));
|
||||
}
|
||||
|
||||
public String getRealParameterRef(int i) {
|
||||
return realArgsReferences.get(0);
|
||||
}
|
||||
|
||||
public List<String> getRealParametersRefs() {
|
||||
return realArgsReferences;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
25
src/com/bernard/lebernard/runtime/Referencateur.java
Normal file
25
src/com/bernard/lebernard/runtime/Referencateur.java
Normal file
@ -0,0 +1,25 @@
|
||||
package com.bernard.lebernard.runtime;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
public class Referencateur {
|
||||
|
||||
public static Referencateur self;
|
||||
|
||||
public Map<String,Truc> stockage = new HashMap<String, Truc>();
|
||||
public Map<String,String> liens = new HashMap<String, String>();
|
||||
|
||||
public Truc getTruc(String reference) {
|
||||
return stockage.get(stockage.containsKey(reference)?reference:liens.get(reference));
|
||||
}
|
||||
|
||||
public void registerTruc(String ref,Truc t) {
|
||||
stockage.put(ref, t);
|
||||
}
|
||||
|
||||
public void link(String linkName,String reference) {
|
||||
liens.put(linkName, stockage.containsKey(reference)?reference:liens.get(reference));
|
||||
}
|
||||
|
||||
}
|
||||
27
src/com/bernard/lebernard/runtime/Truc.java
Normal file
27
src/com/bernard/lebernard/runtime/Truc.java
Normal file
@ -0,0 +1,27 @@
|
||||
package com.bernard.lebernard.runtime;
|
||||
|
||||
import com.bernard.lebernard.carte.Boiboite;
|
||||
|
||||
public class Truc {
|
||||
|
||||
Boiboite type;
|
||||
|
||||
byte[] data;
|
||||
|
||||
public Truc(Boiboite type, byte[] data) {
|
||||
super();
|
||||
this.type = type;
|
||||
this.data = data;
|
||||
}
|
||||
|
||||
public Boiboite getType() {
|
||||
return type;
|
||||
}
|
||||
|
||||
public byte[] getData() {
|
||||
return data;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
9
src/module-info.java
Normal file
9
src/module-info.java
Normal file
@ -0,0 +1,9 @@
|
||||
/**
|
||||
*
|
||||
*/
|
||||
/**
|
||||
* @author mysaa
|
||||
*
|
||||
*/
|
||||
module LeBernard {
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user