Merge branch 'master' of https://gitea.it/gicorada/java-scuola
This commit is contained in:
commit
f89f4bb552
|
@ -0,0 +1,165 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<xmi:XMI xmi:version="2.1" xmlns:xmi="http://schema.omg.org/spec/XMI/2.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:uml="http://schema.omg.org/spec/UML/2.1">
|
||||||
|
<xmi:Documentation exporter="umbrello uml modeller 2.37.3 (Applications 22.12.3) http://umbrello.kde.org" exporterVersion="2.0.4"/>
|
||||||
|
<uml:Model xmi:id="m1" name="Modello UML">
|
||||||
|
<packagedElement xmi:type="uml:Stereotype" xmi:id="folder" name="folder"/>
|
||||||
|
<packagedElement xmi:type="uml:Stereotype" xmi:id="dataType" name="dataType"/>
|
||||||
|
<packagedElement xmi:type="uml:Model" xmi:id="Logical_View" name="Logical View">
|
||||||
|
<uml:Package xmi:id="Datatypes" name="Datatypes" stereotype="folder">
|
||||||
|
<packagedElement xmi:type="uml:DataType" xmi:id="uwLsHMZ8JW7l8" name="char"/>
|
||||||
|
<packagedElement xmi:type="uml:DataType" xmi:id="uzO3Cg99EuTMj" name="int"/>
|
||||||
|
<packagedElement xmi:type="uml:DataType" xmi:id="uRh9XqoWXBGYp" name="float"/>
|
||||||
|
<packagedElement xmi:type="uml:DataType" xmi:id="u9POPoh1NV5Cg" name="double"/>
|
||||||
|
<packagedElement xmi:type="uml:DataType" xmi:id="uSDmh9TJZoOs3" name="bool" isActive="false"/>
|
||||||
|
<packagedElement xmi:type="uml:DataType" xmi:id="uOBxfxryGacKR" name="string" isActive="false"/>
|
||||||
|
<packagedElement xmi:type="uml:DataType" xmi:id="uv7th1zePfxR3" name="unsigned char" isActive="false"/>
|
||||||
|
<packagedElement xmi:type="uml:DataType" xmi:id="utK5MzPETG0Yq" name="signed char" isActive="false"/>
|
||||||
|
<packagedElement xmi:type="uml:DataType" xmi:id="uax7gCqxooodn" name="unsigned int" isActive="false"/>
|
||||||
|
<packagedElement xmi:type="uml:DataType" xmi:id="uaaohaTIYV7AK" name="signed int" isActive="false"/>
|
||||||
|
<packagedElement xmi:type="uml:DataType" xmi:id="uNjCUerwS7haj" name="short int" isActive="false"/>
|
||||||
|
<packagedElement xmi:type="uml:DataType" xmi:id="u3AbUyG28fZpV" name="unsigned short int" isActive="false"/>
|
||||||
|
<packagedElement xmi:type="uml:DataType" xmi:id="uRobSyn28xRAE" name="signed short int" isActive="false"/>
|
||||||
|
<packagedElement xmi:type="uml:DataType" xmi:id="ul1z7D4RtqNuL" name="long int" isActive="false"/>
|
||||||
|
<packagedElement xmi:type="uml:DataType" xmi:id="uCOXLWCRWK0x8" name="signed long int" isActive="false"/>
|
||||||
|
<packagedElement xmi:type="uml:DataType" xmi:id="uvXcY5zUtrRFm" name="unsigned long int" isActive="false"/>
|
||||||
|
<packagedElement xmi:type="uml:DataType" xmi:id="uyqnJXaNpqd4p" name="long double" isActive="false"/>
|
||||||
|
<packagedElement xmi:type="uml:DataType" xmi:id="uv2p7TuqUoF3O" name="wchar_t" isActive="false"/>
|
||||||
|
<packagedElement xmi:type="uml:DataType" xmi:id="uz6Vb9IPgPLTI" name="boolean" stereotype="dataType"/>
|
||||||
|
<packagedElement xmi:type="uml:DataType" xmi:id="u5W6FZYo1An9T" name="byte" stereotype="dataType"/>
|
||||||
|
<packagedElement xmi:type="uml:DataType" xmi:id="uRwu3aI1znwpR" name="short" stereotype="dataType"/>
|
||||||
|
<packagedElement xmi:type="uml:DataType" xmi:id="u7pA5Xzx1qLFd" name="long" stereotype="dataType"/>
|
||||||
|
<packagedElement xmi:type="uml:DataType" xmi:id="ujkqB4OKtmDb5" name="String" stereotype="dataType"/>
|
||||||
|
<packagedElement xmi:type="uml:DataType" xmi:id="u7QM5TX3y37tX" name="Integer" stereotype="dataType"/>
|
||||||
|
<packagedElement xmi:type="uml:DataType" xmi:id="ubBROUe79GD8p" name="Character" stereotype="dataType"/>
|
||||||
|
<packagedElement xmi:type="uml:DataType" xmi:id="uGrLvGqMRErQE" name="Boolean" stereotype="dataType"/>
|
||||||
|
<packagedElement xmi:type="uml:DataType" xmi:id="uT5xfQw6CsXfT" name="Float" stereotype="dataType"/>
|
||||||
|
<packagedElement xmi:type="uml:DataType" xmi:id="uTpblOnF0ueOZ" name="Double" stereotype="dataType"/>
|
||||||
|
<packagedElement xmi:type="uml:DataType" xmi:id="uQiSmTofNyJYv" name="Byte" stereotype="dataType"/>
|
||||||
|
<packagedElement xmi:type="uml:DataType" xmi:id="ucknpiQ3GVhQc" name="Short" stereotype="dataType"/>
|
||||||
|
<packagedElement xmi:type="uml:DataType" xmi:id="uUjCJ6i5JOhqY" name="Long" stereotype="dataType"/>
|
||||||
|
<packagedElement xmi:type="uml:DataType" xmi:id="uX31vCRYgJHV7" name="StringBuffer" stereotype="dataType"/>
|
||||||
|
<packagedElement xmi:type="uml:DataType" xmi:id="u02tLqBGqJS39" name="StringBuilder" stereotype="dataType"/>
|
||||||
|
</uml:Package>
|
||||||
|
<packagedElement xmi:type="uml:Class" xmi:id="uYc8pdxdIZ4Fc" name="String"/>
|
||||||
|
<packagedElement xmi:type="uml:Class" xmi:id="ueXqrcljkwoSR" name="Dipendente">
|
||||||
|
<ownedAttribute xmi:type="uml:Property" xmi:id="ugmHtIPoU1xIl" name="matricola" visibility="private" type="uYc8pdxdIZ4Fc"/>
|
||||||
|
<ownedAttribute xmi:type="uml:Property" xmi:id="u3u3eElpcDdPH" name="stipendio" visibility="private" type="u9POPoh1NV5Cg"/>
|
||||||
|
<ownedAttribute xmi:type="uml:Property" xmi:id="uCWydd1AbPSm8" name="straordinario" visibility="private" type="u9POPoh1NV5Cg"/>
|
||||||
|
<ownedOperation xmi:type="uml:Operation" xmi:id="uRSeTfHEaSblu" name="Dipendente" comment="public Dipendente(String matricola, double stipendio, double straordinario ) { super(matricola, stipendio, straordinario); }">
|
||||||
|
<ownedParameter xmi:type="uml:Parameter" xmi:id="uXbzl880nh0AX" name="matricola" visibility="private" type="uYc8pdxdIZ4Fc" value=""/>
|
||||||
|
<ownedParameter xmi:type="uml:Parameter" xmi:id="u8JhXBzwkFAcS" name="stipendio" visibility="private" type="u9POPoh1NV5Cg" value=""/>
|
||||||
|
<ownedParameter xmi:type="uml:Parameter" xmi:id="uJwr1Ry5PXwN3" name="straordinario" visibility="private" type="u9POPoh1NV5Cg" value=""/>
|
||||||
|
</ownedOperation>
|
||||||
|
<ownedOperation xmi:type="uml:Operation" xmi:id="uBYOVIXwt9ixv" name="getStipendio">
|
||||||
|
<ownedParameter xmi:type="uml:Parameter" xmi:id="uGTeSpT89iYfs" type="u9POPoh1NV5Cg" direction="return"/>
|
||||||
|
</ownedOperation>
|
||||||
|
<ownedOperation xmi:type="uml:Operation" xmi:id="ufrEABFBF1z7K" name="paga">
|
||||||
|
<ownedParameter xmi:type="uml:Parameter" xmi:id="up3XudzmNr0eW" type="u9POPoh1NV5Cg" direction="return"/>
|
||||||
|
<ownedParameter xmi:type="uml:Parameter" xmi:id="uFTMo9vytz5D2" name="ore" visibility="private" type="uzO3Cg99EuTMj" value=""/>
|
||||||
|
</ownedOperation>
|
||||||
|
<ownedOperation xmi:type="uml:Operation" xmi:id="uBEF7AhbmjRMC" name="toString" isOverride="true">
|
||||||
|
<ownedParameter xmi:type="uml:Parameter" xmi:id="uQbjf0IpylroP" type="uYc8pdxdIZ4Fc" direction="return"/>
|
||||||
|
</ownedOperation>
|
||||||
|
<packagedElement xmi:type="uml:Class" xmi:id="uPkgJJFcRA6pU" name="DipendenteA">
|
||||||
|
<generalization xmi:type="uml:Generalization" xmi:id="uqmTjTu2Vypz9" general="ueXqrcljkwoSR"/>
|
||||||
|
<ownedAttribute xmi:type="uml:Property" xmi:id="uampWxf8Q4otj" name="malattia" visibility="private" type="uzO3Cg99EuTMj"/>
|
||||||
|
<ownedOperation xmi:type="uml:Operation" xmi:id="us13LpL8qW9E0" name="DipendenteA">
|
||||||
|
<ownedParameter xmi:type="uml:Parameter" xmi:id="uLHc46umi90fW" name="matricola" visibility="private" type="uYc8pdxdIZ4Fc" value=""/>
|
||||||
|
<ownedParameter xmi:type="uml:Parameter" xmi:id="uIRgKn07rQaSl" name="stipendio" visibility="private" type="u9POPoh1NV5Cg" value=""/>
|
||||||
|
<ownedParameter xmi:type="uml:Parameter" xmi:id="u7r78W8udexKm" name="straordinario" visibility="private" type="u9POPoh1NV5Cg" value=""/>
|
||||||
|
</ownedOperation>
|
||||||
|
<ownedOperation xmi:type="uml:Operation" xmi:id="uyN43aPeeMGO5" name="prendiMalattia">
|
||||||
|
<ownedParameter xmi:type="uml:Parameter" xmi:id="uraIMT0zXdesA" name="giorni" visibility="private" type="uzO3Cg99EuTMj" value=""/>
|
||||||
|
</ownedOperation>
|
||||||
|
<ownedOperation xmi:type="uml:Operation" xmi:id="uGFQRyuG4cOGl" name="paga" comment="Ogni giorno di malattia, vengono sottratti 10€ dallo stipendio" isOverride="true">
|
||||||
|
<ownedParameter xmi:type="uml:Parameter" xmi:id="upc2FTODMdDOD" type="u9POPoh1NV5Cg" direction="return"/>
|
||||||
|
<ownedParameter xmi:type="uml:Parameter" xmi:id="udEve3IRKzqPd" name="ore" visibility="private" type="uzO3Cg99EuTMj" value=""/>
|
||||||
|
</ownedOperation>
|
||||||
|
<ownedOperation xmi:type="uml:Operation" xmi:id="u47KT64YVLcol" name="toString" isOverride="true">
|
||||||
|
<ownedParameter xmi:type="uml:Parameter" xmi:id="u4acue64IXEQl" type="uYc8pdxdIZ4Fc" direction="return"/>
|
||||||
|
</ownedOperation>
|
||||||
|
</packagedElement>
|
||||||
|
</packagedElement>
|
||||||
|
<packagedElement xmi:type="uml:Class" xmi:id="uPkgJJFcRA6pU" name="DipendenteA">
|
||||||
|
<generalization xmi:type="uml:Generalization" xmi:id="uqmTjTu2Vypz9" general="ueXqrcljkwoSR"/>
|
||||||
|
<ownedAttribute xmi:type="uml:Property" xmi:id="uampWxf8Q4otj" name="malattia" visibility="private" type="uzO3Cg99EuTMj"/>
|
||||||
|
<ownedOperation xmi:type="uml:Operation" xmi:id="us13LpL8qW9E0" name="DipendenteA">
|
||||||
|
<ownedParameter xmi:type="uml:Parameter" xmi:id="uLHc46umi90fW" name="matricola" visibility="private" type="uYc8pdxdIZ4Fc" value=""/>
|
||||||
|
<ownedParameter xmi:type="uml:Parameter" xmi:id="uIRgKn07rQaSl" name="stipendio" visibility="private" type="u9POPoh1NV5Cg" value=""/>
|
||||||
|
<ownedParameter xmi:type="uml:Parameter" xmi:id="u7r78W8udexKm" name="straordinario" visibility="private" type="u9POPoh1NV5Cg" value=""/>
|
||||||
|
</ownedOperation>
|
||||||
|
<ownedOperation xmi:type="uml:Operation" xmi:id="uyN43aPeeMGO5" name="prendiMalattia">
|
||||||
|
<ownedParameter xmi:type="uml:Parameter" xmi:id="uraIMT0zXdesA" name="giorni" visibility="private" type="uzO3Cg99EuTMj" value=""/>
|
||||||
|
</ownedOperation>
|
||||||
|
<ownedOperation xmi:type="uml:Operation" xmi:id="uGFQRyuG4cOGl" name="paga" comment="Ogni giorno di malattia, vengono sottratti 10€ dallo stipendio" isOverride="true">
|
||||||
|
<ownedParameter xmi:type="uml:Parameter" xmi:id="upc2FTODMdDOD" type="u9POPoh1NV5Cg" direction="return"/>
|
||||||
|
<ownedParameter xmi:type="uml:Parameter" xmi:id="udEve3IRKzqPd" name="ore" visibility="private" type="uzO3Cg99EuTMj" value=""/>
|
||||||
|
</ownedOperation>
|
||||||
|
<ownedOperation xmi:type="uml:Operation" xmi:id="u47KT64YVLcol" name="toString" isOverride="true">
|
||||||
|
<ownedParameter xmi:type="uml:Parameter" xmi:id="u4acue64IXEQl" type="uYc8pdxdIZ4Fc" direction="return"/>
|
||||||
|
</ownedOperation>
|
||||||
|
</packagedElement>
|
||||||
|
<xmi:Extension extender="umbrello">
|
||||||
|
<diagrams resolution="96">
|
||||||
|
<diagram xmi.id="uzQv5WbjakqbL" name="diagramma delle classi" type="1" documentation="" backgroundcolor="#ffffff" fillcolor="#ffffc0" font="Noto Sans,10,-1,0,50,0,0,0,0,0" griddotcolor="#d3d3d3" linecolor="#990000" linewidth="0" textcolor="#000000" usefillcolor="1" showattribassocs="1" showatts="1" showattsig="1" showops="1" showopsig="1" showpackage="1" showpubliconly="0" showscope="1" showstereotype="2" localid="-1" showgrid="0" snapgrid="0" snapcsgrid="0" snapx="25" snapy="25" zoom="100" canvasheight="800" canvaswidth="1100" isopen="1">
|
||||||
|
<widgets>
|
||||||
|
<classwidget xmi.id="uPkgJJFcRA6pU" localid="utN4zi1eIE5Ah" textcolor="#000000" linecolor="#990000" linewidth="0" usefillcolor="1" usesdiagramfillcolor="0" usesdiagramusefillcolor="0" fillcolor="#ffffc0" font="Noto Sans,10,-1,5,50,0,0,0,0,0,Regular" autoresize="1" x="301" y="480" width="469" height="108" isinstance="0" showstereotype="2" showoperations="1" showpubliconly="0" showopsigs="601" showpackage="1" showscope="1" showattributes="1" showattsigs="601"/>
|
||||||
|
<classwidget xmi.id="ueXqrcljkwoSR" localid="uw3FjIH3do6xh" textcolor="#000000" linecolor="#990000" linewidth="0" usefillcolor="1" usesdiagramfillcolor="0" usesdiagramusefillcolor="0" fillcolor="#ffffc0" font="Noto Sans,10,-1,5,50,0,0,0,0,0,Regular" autoresize="1" x="292" y="167" width="460" height="144" isinstance="0" showstereotype="2" showoperations="1" showpubliconly="0" showopsigs="601" showpackage="1" showscope="1" showattributes="1" showattsigs="601"/>
|
||||||
|
</widgets>
|
||||||
|
<messages/>
|
||||||
|
<associations>
|
||||||
|
<assocwidget xmi.id="uqmTjTu2Vypz9" localid="uTyKV4meBIOPO" textcolor="none" linecolor="#990000" linewidth="0" usefillcolor="1" usesdiagramfillcolor="1" usesdiagramusefillcolor="1" fillcolor="none" font="Noto Sans,10,-1,0,50,0,0,0,0,0" autoresize="1" seqnum="" type="500" widgetaid="uPkgJJFcRA6pU" widgetbid="ueXqrcljkwoSR" indexa="0" totalcounta="0" indexb="0" totalcountb="0">
|
||||||
|
<linepath layout="Direct">
|
||||||
|
<startpoint startx="533.029" starty="480"/>
|
||||||
|
<endpoint endx="525.295" endy="311"/>
|
||||||
|
</linepath>
|
||||||
|
</assocwidget>
|
||||||
|
</associations>
|
||||||
|
</diagram>
|
||||||
|
</diagrams>
|
||||||
|
</xmi:Extension>
|
||||||
|
</packagedElement>
|
||||||
|
<packagedElement xmi:type="uml:Model" xmi:id="Use_Case_View" name="Use Case View"/>
|
||||||
|
<packagedElement xmi:type="uml:Model" xmi:id="Component_View" name="Component View"/>
|
||||||
|
<packagedElement xmi:type="uml:Model" xmi:id="Deployment_View" name="Deployment View"/>
|
||||||
|
<packagedElement xmi:type="uml:Model" xmi:id="Entity_Relationship_Model" name="Entity Relationship Model"/>
|
||||||
|
</uml:Model>
|
||||||
|
<xmi:Extension extender="umbrello">
|
||||||
|
<docsettings viewid="uzQv5WbjakqbL" documentation="" uniqueid="u02tLqBGqJS39"/>
|
||||||
|
<listview>
|
||||||
|
<listitem id="Views" type="800" open="1">
|
||||||
|
<listitem id="Entity_Relationship_Model" type="836" open="1"/>
|
||||||
|
<listitem id="Use_Case_View" type="802" open="1"/>
|
||||||
|
<listitem id="Component_View" type="821" open="1"/>
|
||||||
|
<listitem id="Deployment_View" type="827" open="1"/>
|
||||||
|
<listitem id="Logical_View" type="801" open="1">
|
||||||
|
<listitem id="uzQv5WbjakqbL" type="807" label="diagramma delle classi" open="0"/>
|
||||||
|
<listitem id="ueXqrcljkwoSR" type="813" open="1">
|
||||||
|
<listitem id="uRSeTfHEaSblu" type="815" open="0"/>
|
||||||
|
<listitem id="uBYOVIXwt9ixv" type="815" open="0"/>
|
||||||
|
<listitem id="ugmHtIPoU1xIl" type="814" open="0"/>
|
||||||
|
<listitem id="ufrEABFBF1z7K" type="815" open="0"/>
|
||||||
|
<listitem id="u3u3eElpcDdPH" type="814" open="0"/>
|
||||||
|
<listitem id="uCWydd1AbPSm8" type="814" open="0"/>
|
||||||
|
<listitem id="uBEF7AhbmjRMC" type="815" open="0"/>
|
||||||
|
</listitem>
|
||||||
|
<listitem id="uPkgJJFcRA6pU" type="813" open="1">
|
||||||
|
<listitem id="us13LpL8qW9E0" type="815" open="0"/>
|
||||||
|
<listitem id="uampWxf8Q4otj" type="814" open="0"/>
|
||||||
|
<listitem id="uGFQRyuG4cOGl" type="815" open="0"/>
|
||||||
|
<listitem id="uyN43aPeeMGO5" type="815" open="0"/>
|
||||||
|
<listitem id="u47KT64YVLcol" type="815" open="0"/>
|
||||||
|
</listitem>
|
||||||
|
<listitem id="uYc8pdxdIZ4Fc" type="813" open="1"/>
|
||||||
|
</listitem>
|
||||||
|
</listitem>
|
||||||
|
</listview>
|
||||||
|
<codegeneration>
|
||||||
|
<codegenerator language="Java">
|
||||||
|
<sourcecode id="uBYOVIXwt9ixv" value="return stipendio;"/>
|
||||||
|
<sourcecode id="us13LpL8qW9E0" value="public DipendenteA(String matricola, double stipendio, double straordinario ) { 	super(matricola, stipendio, straordinario); }"/>
|
||||||
|
<sourcecode id="uyN43aPeeMGO5" value="malattia += giorni"/>
|
||||||
|
</codegenerator>
|
||||||
|
</codegeneration>
|
||||||
|
</xmi:Extension>
|
||||||
|
</xmi:XMI>
|
|
@ -0,0 +1,157 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<xmi:XMI xmi:version="2.1" xmlns:xmi="http://schema.omg.org/spec/XMI/2.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:uml="http://schema.omg.org/spec/UML/2.1">
|
||||||
|
<xmi:Documentation exporter="umbrello uml modeller 2.37.3 (Applications 22.12.3) http://umbrello.kde.org" exporterVersion="2.0.4"/>
|
||||||
|
<uml:Model xmi:id="m1" name="Modello UML">
|
||||||
|
<packagedElement xmi:type="uml:Stereotype" xmi:id="folder" name="folder"/>
|
||||||
|
<packagedElement xmi:type="uml:Stereotype" xmi:id="dataType" name="dataType"/>
|
||||||
|
<packagedElement xmi:type="uml:Model" xmi:id="Logical_View" name="Logical View">
|
||||||
|
<uml:Package xmi:id="Datatypes" name="Datatypes" stereotype="folder">
|
||||||
|
<packagedElement xmi:type="uml:DataType" xmi:id="uZNBGfk3WoPDK" name="char"/>
|
||||||
|
<packagedElement xmi:type="uml:DataType" xmi:id="um01zL0ftpQyt" name="int"/>
|
||||||
|
<packagedElement xmi:type="uml:DataType" xmi:id="uv4q9cvVfIbgC" name="float"/>
|
||||||
|
<packagedElement xmi:type="uml:DataType" xmi:id="ukX62hKjH2hZn" name="double"/>
|
||||||
|
<packagedElement xmi:type="uml:DataType" xmi:id="uW8h40w2J7T8s" name="bool" isActive="false"/>
|
||||||
|
<packagedElement xmi:type="uml:DataType" xmi:id="uCJO0E6GiLk7w" name="string" isActive="false"/>
|
||||||
|
<packagedElement xmi:type="uml:DataType" xmi:id="uyRWS2MkwRbuB" name="unsigned char" isActive="false"/>
|
||||||
|
<packagedElement xmi:type="uml:DataType" xmi:id="uY4PcOGXfLGb6" name="signed char" isActive="false"/>
|
||||||
|
<packagedElement xmi:type="uml:DataType" xmi:id="ujVBDTMqV7yd2" name="unsigned int" isActive="false"/>
|
||||||
|
<packagedElement xmi:type="uml:DataType" xmi:id="uoH5ATQ808wg1" name="signed int" isActive="false"/>
|
||||||
|
<packagedElement xmi:type="uml:DataType" xmi:id="uTHxipYeKZ1fn" name="short int" isActive="false"/>
|
||||||
|
<packagedElement xmi:type="uml:DataType" xmi:id="uqQbJm8g7zaef" name="unsigned short int" isActive="false"/>
|
||||||
|
<packagedElement xmi:type="uml:DataType" xmi:id="uCmjC9qkEcDy8" name="signed short int" isActive="false"/>
|
||||||
|
<packagedElement xmi:type="uml:DataType" xmi:id="uExAaWGk3cEfp" name="long int" isActive="false"/>
|
||||||
|
<packagedElement xmi:type="uml:DataType" xmi:id="upCUCsgyahsFa" name="signed long int" isActive="false"/>
|
||||||
|
<packagedElement xmi:type="uml:DataType" xmi:id="uFCnBaquBorVr" name="unsigned long int" isActive="false"/>
|
||||||
|
<packagedElement xmi:type="uml:DataType" xmi:id="uBrnu8TOYbVgJ" name="long double" isActive="false"/>
|
||||||
|
<packagedElement xmi:type="uml:DataType" xmi:id="uhRS1EnYHQb0X" name="wchar_t" isActive="false"/>
|
||||||
|
<packagedElement xmi:type="uml:DataType" xmi:id="uS9IpYlk2E6rq" name="boolean" stereotype="dataType"/>
|
||||||
|
<packagedElement xmi:type="uml:DataType" xmi:id="uj4V2kyktwTQ7" name="byte" stereotype="dataType"/>
|
||||||
|
<packagedElement xmi:type="uml:DataType" xmi:id="uNfofqkdT5eGP" name="short" stereotype="dataType"/>
|
||||||
|
<packagedElement xmi:type="uml:DataType" xmi:id="uDLuzLW5oppvm" name="long" stereotype="dataType"/>
|
||||||
|
<packagedElement xmi:type="uml:DataType" xmi:id="uAhX8hlNtxT3s" name="String" stereotype="dataType"/>
|
||||||
|
<packagedElement xmi:type="uml:DataType" xmi:id="u48dy8y31xQ66" name="Integer" stereotype="dataType"/>
|
||||||
|
<packagedElement xmi:type="uml:DataType" xmi:id="uaf41DIqo5JoZ" name="Character" stereotype="dataType"/>
|
||||||
|
<packagedElement xmi:type="uml:DataType" xmi:id="uvTRvxO6cg7Vf" name="Boolean" stereotype="dataType"/>
|
||||||
|
<packagedElement xmi:type="uml:DataType" xmi:id="u262NUuEEgJ1N" name="Float" stereotype="dataType"/>
|
||||||
|
<packagedElement xmi:type="uml:DataType" xmi:id="uJwDhvMhemmFq" name="Double" stereotype="dataType"/>
|
||||||
|
<packagedElement xmi:type="uml:DataType" xmi:id="utmKvk0rLh5FL" name="Byte" stereotype="dataType"/>
|
||||||
|
<packagedElement xmi:type="uml:DataType" xmi:id="u5DKvEbcDtV2o" name="Short" stereotype="dataType"/>
|
||||||
|
<packagedElement xmi:type="uml:DataType" xmi:id="ucGbPKnf7oNpv" name="Long" stereotype="dataType"/>
|
||||||
|
<packagedElement xmi:type="uml:DataType" xmi:id="uhWY6eyHnWuFu" name="StringBuffer" stereotype="dataType"/>
|
||||||
|
<packagedElement xmi:type="uml:DataType" xmi:id="uQCRGgGGtl2PT" name="StringBuilder" stereotype="dataType"/>
|
||||||
|
</uml:Package>
|
||||||
|
<packagedElement xmi:type="uml:Class" xmi:id="ulGFCxGKuWXgM" name="Motorino">
|
||||||
|
<ownedAttribute xmi:type="uml:Property" xmi:id="uBW5IS8y4pRaY" name="colore" visibility="private" type="uADcHsm019w8K"/>
|
||||||
|
<ownedAttribute xmi:type="uml:Property" xmi:id="uTjNXoGQJyYxg" name="velocita" visibility="private" type="ukX62hKjH2hZn"/>
|
||||||
|
<ownedAttribute xmi:type="uml:Property" xmi:id="uyY6mjCVRoFrk" name="tipo" visibility="private" type="uADcHsm019w8K"/>
|
||||||
|
<ownedAttribute xmi:type="uml:Property" xmi:id="udYMXsGteY8QD" name="antifurto" visibility="private" type="uyMXUQ253ONqD"/>
|
||||||
|
<ownedOperation xmi:type="uml:Operation" xmi:id="u3BTDJTGQggDQ" name="Motorino">
|
||||||
|
<ownedParameter xmi:type="uml:Parameter" xmi:id="uv24SuABUdXad" name="colore" visibility="private" type="uADcHsm019w8K" value=""/>
|
||||||
|
<ownedParameter xmi:type="uml:Parameter" xmi:id="uNFBhenEbs3VN" name="velocita" visibility="private" type="ukX62hKjH2hZn" value=""/>
|
||||||
|
<ownedParameter xmi:type="uml:Parameter" xmi:id="upemG9JaBVVNs" name="tipo" visibility="private" type="uADcHsm019w8K" value=""/>
|
||||||
|
</ownedOperation>
|
||||||
|
<ownedOperation xmi:type="uml:Operation" xmi:id="uehCbOUBs62ny" name="getVelocita">
|
||||||
|
<ownedParameter xmi:type="uml:Parameter" xmi:id="u3f897gAEK60G" type="ukX62hKjH2hZn" direction="return"/>
|
||||||
|
</ownedOperation>
|
||||||
|
<ownedOperation xmi:type="uml:Operation" xmi:id="uVNwBdUXgiMV3" name="accelera">
|
||||||
|
<ownedParameter xmi:type="uml:Parameter" xmi:id="unAaMS6bFEAHN" name="delta" visibility="private" type="ukX62hKjH2hZn" value=""/>
|
||||||
|
</ownedOperation>
|
||||||
|
<ownedOperation xmi:type="uml:Operation" xmi:id="ucTiDcuNwwLCg" name="toggleAntifurto"/>
|
||||||
|
</packagedElement>
|
||||||
|
<packagedElement xmi:type="uml:Class" xmi:id="uADcHsm019w8K" name="String"/>
|
||||||
|
<packagedElement xmi:type="uml:Class" xmi:id="uyMXUQ253ONqD" name="boolean"/>
|
||||||
|
<packagedElement xmi:type="uml:Class" xmi:id="uFtv4Gm3h8hXR" name="MotorinoImmatricolato">
|
||||||
|
<generalization xmi:type="uml:Generalization" xmi:id="u1FvnI6h1ht52" general="ulGFCxGKuWXgM"/>
|
||||||
|
<ownedAttribute xmi:type="uml:Property" xmi:id="uAc9nqqYYCJ5v" name="maxVelocita" visibility="private" type="ukX62hKjH2hZn"/>
|
||||||
|
<ownedAttribute xmi:type="uml:Property" xmi:id="uMTQezNXGHnDt" name="targa" visibility="private" type="uADcHsm019w8K"/>
|
||||||
|
<ownedOperation xmi:type="uml:Operation" xmi:id="uP9dmQf2oKS6U" name="MotorinoImmatricolato">
|
||||||
|
<ownedParameter xmi:type="uml:Parameter" xmi:id="uPe9EzItIb0Cz" name="maxVelocita" visibility="private" type="ukX62hKjH2hZn" value=""/>
|
||||||
|
<ownedParameter xmi:type="uml:Parameter" xmi:id="u1oKR3CcVxmm5" name="targa" visibility="private" type="uADcHsm019w8K" value=""/>
|
||||||
|
</ownedOperation>
|
||||||
|
<ownedOperation xmi:type="uml:Operation" xmi:id="uxymkci4eHS3I" name="getMaxVelocita">
|
||||||
|
<ownedParameter xmi:type="uml:Parameter" xmi:id="uWuPFr4VhlloV" type="ukX62hKjH2hZn" direction="return"/>
|
||||||
|
</ownedOperation>
|
||||||
|
<ownedOperation xmi:type="uml:Operation" xmi:id="uD9d6J7YfiNFy" name="accelera" comment="La velocità non deve superare maxVelocita" isOverride="true">
|
||||||
|
<ownedParameter xmi:type="uml:Parameter" xmi:id="uarrnE8Y2fudf" name="delta" visibility="private" type="ukX62hKjH2hZn" value=""/>
|
||||||
|
</ownedOperation>
|
||||||
|
</packagedElement>
|
||||||
|
<xmi:Extension extender="umbrello">
|
||||||
|
<diagrams resolution="96">
|
||||||
|
<diagram xmi.id="upLm3NlwCsurt" name="diagramma delle classi" type="1" documentation="" backgroundcolor="#ffffff" fillcolor="#ffffc0" font="Noto Sans,10,-1,0,50,0,0,0,0,0" griddotcolor="#d3d3d3" linecolor="#990000" linewidth="0" textcolor="#000000" usefillcolor="1" showattribassocs="1" showatts="1" showattsig="1" showops="1" showopsig="1" showpackage="1" showpubliconly="0" showscope="1" showstereotype="2" localid="-1" showgrid="0" snapgrid="0" snapcsgrid="0" snapx="25" snapy="25" zoom="100" canvasheight="800" canvaswidth="1100" isopen="1">
|
||||||
|
<widgets>
|
||||||
|
<classwidget xmi.id="ulGFCxGKuWXgM" localid="udxT3xoYgTjlF" textcolor="#000000" linecolor="#990000" linewidth="0" usefillcolor="1" usesdiagramfillcolor="0" usesdiagramusefillcolor="0" fillcolor="#ffffc0" font="Noto Sans,10,-1,5,50,0,0,0,0,0,Regular" autoresize="1" x="289" y="112" width="354" height="162" isinstance="0" showstereotype="2" showoperations="1" showpubliconly="0" showopsigs="601" showpackage="1" showscope="1" showattributes="1" showattsigs="601"/>
|
||||||
|
<classwidget xmi.id="uFtv4Gm3h8hXR" localid="uAmCdy7fR5pdS" textcolor="#000000" linecolor="#990000" linewidth="0" usefillcolor="1" usesdiagramfillcolor="0" usesdiagramusefillcolor="0" fillcolor="#ffffc0" font="Noto Sans,10,-1,5,50,0,0,0,0,0,Regular" autoresize="1" x="271.268" y="412.195" width="385" height="108" isinstance="0" showstereotype="2" showoperations="1" showpubliconly="0" showopsigs="601" showpackage="1" showscope="1" showattributes="1" showattsigs="601"/>
|
||||||
|
</widgets>
|
||||||
|
<messages/>
|
||||||
|
<associations>
|
||||||
|
<assocwidget xmi.id="u1FvnI6h1ht52" localid="ue1ZNwMES1l4J" textcolor="none" linecolor="#990000" linewidth="0" usefillcolor="1" usesdiagramfillcolor="1" usesdiagramusefillcolor="1" fillcolor="none" font="Noto Sans,10,-1,0,50,0,0,0,0,0" autoresize="1" seqnum="" type="500" widgetaid="uFtv4Gm3h8hXR" widgetbid="ulGFCxGKuWXgM" indexa="0" totalcounta="0" indexb="0" totalcountb="0">
|
||||||
|
<linepath layout="Direct">
|
||||||
|
<startpoint startx="464.21" starty="412.195"/>
|
||||||
|
<endpoint endx="465.338" endy="274"/>
|
||||||
|
</linepath>
|
||||||
|
</assocwidget>
|
||||||
|
</associations>
|
||||||
|
</diagram>
|
||||||
|
</diagrams>
|
||||||
|
</xmi:Extension>
|
||||||
|
</packagedElement>
|
||||||
|
<packagedElement xmi:type="uml:Model" xmi:id="Use_Case_View" name="Use Case View"/>
|
||||||
|
<packagedElement xmi:type="uml:Model" xmi:id="Component_View" name="Component View"/>
|
||||||
|
<packagedElement xmi:type="uml:Model" xmi:id="Deployment_View" name="Deployment View"/>
|
||||||
|
<packagedElement xmi:type="uml:Model" xmi:id="Entity_Relationship_Model" name="Entity Relationship Model"/>
|
||||||
|
</uml:Model>
|
||||||
|
<xmi:Extension extender="umbrello">
|
||||||
|
<docsettings viewid="upLm3NlwCsurt" documentation="" uniqueid="ugHLXNl41o6cp"/>
|
||||||
|
<listview>
|
||||||
|
<listitem id="Views" type="800" open="1">
|
||||||
|
<listitem id="Entity_Relationship_Model" type="836" open="1"/>
|
||||||
|
<listitem id="Use_Case_View" type="802" open="1"/>
|
||||||
|
<listitem id="Component_View" type="821" open="1"/>
|
||||||
|
<listitem id="Deployment_View" type="827" open="1"/>
|
||||||
|
<listitem id="Logical_View" type="801" open="1">
|
||||||
|
<listitem id="uyMXUQ253ONqD" type="813" open="1"/>
|
||||||
|
<listitem id="upLm3NlwCsurt" type="807" label="diagramma delle classi" open="0"/>
|
||||||
|
<listitem id="ulGFCxGKuWXgM" type="813" open="1">
|
||||||
|
<listitem id="uVNwBdUXgiMV3" type="815" open="0"/>
|
||||||
|
<listitem id="udYMXsGteY8QD" type="814" open="0"/>
|
||||||
|
<listitem id="uBW5IS8y4pRaY" type="814" open="0"/>
|
||||||
|
<listitem id="uehCbOUBs62ny" type="815" open="0"/>
|
||||||
|
<listitem id="u3BTDJTGQggDQ" type="815" open="0"/>
|
||||||
|
<listitem id="uyY6mjCVRoFrk" type="814" open="0"/>
|
||||||
|
<listitem id="ucTiDcuNwwLCg" type="815" open="0"/>
|
||||||
|
<listitem id="uTjNXoGQJyYxg" type="814" open="0"/>
|
||||||
|
</listitem>
|
||||||
|
<listitem id="uFtv4Gm3h8hXR" type="813" open="1">
|
||||||
|
<listitem id="uD9d6J7YfiNFy" type="815" open="0"/>
|
||||||
|
<listitem id="uxymkci4eHS3I" type="815" open="0"/>
|
||||||
|
<listitem id="uAc9nqqYYCJ5v" type="814" open="0"/>
|
||||||
|
<listitem id="uP9dmQf2oKS6U" type="815" open="0"/>
|
||||||
|
<listitem id="uMTQezNXGHnDt" type="814" open="0"/>
|
||||||
|
</listitem>
|
||||||
|
<listitem id="uADcHsm019w8K" type="813" open="1"/>
|
||||||
|
<listitem id="Datatypes" type="830" open="0">
|
||||||
|
<listitem id="uS9IpYlk2E6rq" type="829" open="1"/>
|
||||||
|
<listitem id="uvTRvxO6cg7Vf" type="829" open="1"/>
|
||||||
|
<listitem id="uj4V2kyktwTQ7" type="829" open="1"/>
|
||||||
|
<listitem id="utmKvk0rLh5FL" type="829" open="1"/>
|
||||||
|
<listitem id="uaf41DIqo5JoZ" type="829" open="1"/>
|
||||||
|
<listitem id="uJwDhvMhemmFq" type="829" open="1"/>
|
||||||
|
<listitem id="u262NUuEEgJ1N" type="829" open="1"/>
|
||||||
|
<listitem id="um01zL0ftpQyt" type="829" open="1"/>
|
||||||
|
<listitem id="u48dy8y31xQ66" type="829" open="1"/>
|
||||||
|
<listitem id="uDLuzLW5oppvm" type="829" open="1"/>
|
||||||
|
<listitem id="ucGbPKnf7oNpv" type="829" open="1"/>
|
||||||
|
<listitem id="uNfofqkdT5eGP" type="829" open="1"/>
|
||||||
|
<listitem id="u5DKvEbcDtV2o" type="829" open="1"/>
|
||||||
|
<listitem id="uAhX8hlNtxT3s" type="829" open="1"/>
|
||||||
|
<listitem id="uhWY6eyHnWuFu" type="829" open="1"/>
|
||||||
|
<listitem id="uQCRGgGGtl2PT" type="829" open="1"/>
|
||||||
|
</listitem>
|
||||||
|
</listitem>
|
||||||
|
</listitem>
|
||||||
|
</listview>
|
||||||
|
<codegeneration>
|
||||||
|
<codegenerator language="Java"/>
|
||||||
|
</codegeneration>
|
||||||
|
</xmi:Extension>
|
||||||
|
</xmi:XMI>
|
|
@ -0,0 +1,3 @@
|
||||||
|
# Default ignored files
|
||||||
|
/shelf/
|
||||||
|
/workspace.xml
|
|
@ -0,0 +1,6 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="ProjectRootManager" version="2" languageLevel="JDK_19" default="true" project-jdk-name="19" project-jdk-type="JavaSDK">
|
||||||
|
<output url="file://$PROJECT_DIR$/out" />
|
||||||
|
</component>
|
||||||
|
</project>
|
|
@ -0,0 +1,8 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="ProjectModuleManager">
|
||||||
|
<modules>
|
||||||
|
<module fileurl="file://$PROJECT_DIR$/Videoteca.iml" filepath="$PROJECT_DIR$/Videoteca.iml" />
|
||||||
|
</modules>
|
||||||
|
</component>
|
||||||
|
</project>
|
|
@ -0,0 +1,124 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="Palette2">
|
||||||
|
<group name="Swing">
|
||||||
|
<item class="com.intellij.uiDesigner.HSpacer" tooltip-text="Horizontal Spacer" icon="/com/intellij/uiDesigner/icons/hspacer.svg" removable="false" auto-create-binding="false" can-attach-label="false">
|
||||||
|
<default-constraints vsize-policy="1" hsize-policy="6" anchor="0" fill="1" />
|
||||||
|
</item>
|
||||||
|
<item class="com.intellij.uiDesigner.VSpacer" tooltip-text="Vertical Spacer" icon="/com/intellij/uiDesigner/icons/vspacer.svg" removable="false" auto-create-binding="false" can-attach-label="false">
|
||||||
|
<default-constraints vsize-policy="6" hsize-policy="1" anchor="0" fill="2" />
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JPanel" icon="/com/intellij/uiDesigner/icons/panel.svg" removable="false" auto-create-binding="false" can-attach-label="false">
|
||||||
|
<default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3" />
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JScrollPane" icon="/com/intellij/uiDesigner/icons/scrollPane.svg" removable="false" auto-create-binding="false" can-attach-label="true">
|
||||||
|
<default-constraints vsize-policy="7" hsize-policy="7" anchor="0" fill="3" />
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JButton" icon="/com/intellij/uiDesigner/icons/button.svg" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||||
|
<default-constraints vsize-policy="0" hsize-policy="3" anchor="0" fill="1" />
|
||||||
|
<initial-values>
|
||||||
|
<property name="text" value="Button" />
|
||||||
|
</initial-values>
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JRadioButton" icon="/com/intellij/uiDesigner/icons/radioButton.svg" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||||
|
<default-constraints vsize-policy="0" hsize-policy="3" anchor="8" fill="0" />
|
||||||
|
<initial-values>
|
||||||
|
<property name="text" value="RadioButton" />
|
||||||
|
</initial-values>
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JCheckBox" icon="/com/intellij/uiDesigner/icons/checkBox.svg" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||||
|
<default-constraints vsize-policy="0" hsize-policy="3" anchor="8" fill="0" />
|
||||||
|
<initial-values>
|
||||||
|
<property name="text" value="CheckBox" />
|
||||||
|
</initial-values>
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JLabel" icon="/com/intellij/uiDesigner/icons/label.svg" removable="false" auto-create-binding="false" can-attach-label="false">
|
||||||
|
<default-constraints vsize-policy="0" hsize-policy="0" anchor="8" fill="0" />
|
||||||
|
<initial-values>
|
||||||
|
<property name="text" value="Label" />
|
||||||
|
</initial-values>
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JTextField" icon="/com/intellij/uiDesigner/icons/textField.svg" removable="false" auto-create-binding="true" can-attach-label="true">
|
||||||
|
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
|
||||||
|
<preferred-size width="150" height="-1" />
|
||||||
|
</default-constraints>
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JPasswordField" icon="/com/intellij/uiDesigner/icons/passwordField.svg" removable="false" auto-create-binding="true" can-attach-label="true">
|
||||||
|
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
|
||||||
|
<preferred-size width="150" height="-1" />
|
||||||
|
</default-constraints>
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JFormattedTextField" icon="/com/intellij/uiDesigner/icons/formattedTextField.svg" removable="false" auto-create-binding="true" can-attach-label="true">
|
||||||
|
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
|
||||||
|
<preferred-size width="150" height="-1" />
|
||||||
|
</default-constraints>
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JTextArea" icon="/com/intellij/uiDesigner/icons/textArea.svg" removable="false" auto-create-binding="true" can-attach-label="true">
|
||||||
|
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
|
||||||
|
<preferred-size width="150" height="50" />
|
||||||
|
</default-constraints>
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JTextPane" icon="/com/intellij/uiDesigner/icons/textPane.svg" removable="false" auto-create-binding="true" can-attach-label="true">
|
||||||
|
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
|
||||||
|
<preferred-size width="150" height="50" />
|
||||||
|
</default-constraints>
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JEditorPane" icon="/com/intellij/uiDesigner/icons/editorPane.svg" removable="false" auto-create-binding="true" can-attach-label="true">
|
||||||
|
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
|
||||||
|
<preferred-size width="150" height="50" />
|
||||||
|
</default-constraints>
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JComboBox" icon="/com/intellij/uiDesigner/icons/comboBox.svg" removable="false" auto-create-binding="true" can-attach-label="true">
|
||||||
|
<default-constraints vsize-policy="0" hsize-policy="2" anchor="8" fill="1" />
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JTable" icon="/com/intellij/uiDesigner/icons/table.svg" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||||
|
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
|
||||||
|
<preferred-size width="150" height="50" />
|
||||||
|
</default-constraints>
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JList" icon="/com/intellij/uiDesigner/icons/list.svg" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||||
|
<default-constraints vsize-policy="6" hsize-policy="2" anchor="0" fill="3">
|
||||||
|
<preferred-size width="150" height="50" />
|
||||||
|
</default-constraints>
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JTree" icon="/com/intellij/uiDesigner/icons/tree.svg" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||||
|
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
|
||||||
|
<preferred-size width="150" height="50" />
|
||||||
|
</default-constraints>
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JTabbedPane" icon="/com/intellij/uiDesigner/icons/tabbedPane.svg" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||||
|
<default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3">
|
||||||
|
<preferred-size width="200" height="200" />
|
||||||
|
</default-constraints>
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JSplitPane" icon="/com/intellij/uiDesigner/icons/splitPane.svg" removable="false" auto-create-binding="false" can-attach-label="false">
|
||||||
|
<default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3">
|
||||||
|
<preferred-size width="200" height="200" />
|
||||||
|
</default-constraints>
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JSpinner" icon="/com/intellij/uiDesigner/icons/spinner.svg" removable="false" auto-create-binding="true" can-attach-label="true">
|
||||||
|
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1" />
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JSlider" icon="/com/intellij/uiDesigner/icons/slider.svg" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||||
|
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1" />
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JSeparator" icon="/com/intellij/uiDesigner/icons/separator.svg" removable="false" auto-create-binding="false" can-attach-label="false">
|
||||||
|
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3" />
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JProgressBar" icon="/com/intellij/uiDesigner/icons/progressbar.svg" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||||
|
<default-constraints vsize-policy="0" hsize-policy="6" anchor="0" fill="1" />
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JToolBar" icon="/com/intellij/uiDesigner/icons/toolbar.svg" removable="false" auto-create-binding="false" can-attach-label="false">
|
||||||
|
<default-constraints vsize-policy="0" hsize-policy="6" anchor="0" fill="1">
|
||||||
|
<preferred-size width="-1" height="20" />
|
||||||
|
</default-constraints>
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JToolBar$Separator" icon="/com/intellij/uiDesigner/icons/toolbarSeparator.svg" removable="false" auto-create-binding="false" can-attach-label="false">
|
||||||
|
<default-constraints vsize-policy="0" hsize-policy="0" anchor="0" fill="1" />
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JScrollBar" icon="/com/intellij/uiDesigner/icons/scrollbar.svg" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||||
|
<default-constraints vsize-policy="6" hsize-policy="0" anchor="0" fill="2" />
|
||||||
|
</item>
|
||||||
|
</group>
|
||||||
|
</component>
|
||||||
|
</project>
|
|
@ -0,0 +1,6 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="VcsDirectoryMappings">
|
||||||
|
<mapping directory="$PROJECT_DIR$/.." vcs="Git" />
|
||||||
|
</component>
|
||||||
|
</project>
|
|
@ -0,0 +1,12 @@
|
||||||
|
Scrivere una classe Videogioco che rappresenti le seguenti informazioni relative ad un videogioco: titolo, casa produttrice, piattaforma e prezzo, e che contenga il costruttore parametrizzato ed i metodi getTitolo, getCasaProduttrice, getPiattaforma e getPrezzo che restituiscono rispettivamente il titolo, la casa produttrice, la piattaforma e il prezzo del videogioco.
|
||||||
|
|
||||||
|
Scrivere poi una classe Videoteca, che rappresenti un insieme di videogiochi tramite un array di tipo Videogioco, e che contenga il costruttore parametrizzato, un metodo addVideogioco(), che aggiunge un videogioco alla Videoteca, un metodo trova(), che accetta in ingresso una casa produttrice c e un numero reale k e restituisce il numero di videogiochi contenuti nella videoteca prodotti dalla casa produttrice c e con prezzo superiore a k.
|
||||||
|
|
||||||
|
Aggiungere alla classe Videoteca un metodo che accetti una casa produttrice c e restituisca i titoli di tutti i videogiochi prodotti dalla casa produttrice c.
|
||||||
|
|
||||||
|
Scrivere la classe di collaudo che:
|
||||||
|
• istanzia una Videoteca
|
||||||
|
• Istanzia qualche videogioco che viene aggiunto alla Videoteca
|
||||||
|
• prova i diversi metodi, uno alla volta, nell’ordine di realizzazione.
|
||||||
|
|
||||||
|
NB: aggiungere alle classi anche i metodi necessari perché nella classe tester possano essere visualizzati i Videogiochi contenuti nella Videoteca.
|
|
@ -0,0 +1,11 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<module type="JAVA_MODULE" version="4">
|
||||||
|
<component name="NewModuleRootManager" inherit-compiler-output="true">
|
||||||
|
<exclude-output />
|
||||||
|
<content url="file://$MODULE_DIR$">
|
||||||
|
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
|
||||||
|
</content>
|
||||||
|
<orderEntry type="inheritedJdk" />
|
||||||
|
<orderEntry type="sourceFolder" forTests="false" />
|
||||||
|
</component>
|
||||||
|
</module>
|
|
@ -0,0 +1,11 @@
|
||||||
|
public class Tester {
|
||||||
|
public static void main(String[] args) {
|
||||||
|
Videoteca myVideoteca = new Videoteca();
|
||||||
|
|
||||||
|
myVideoteca.addVideogioco(new Videogioco("Test1", "Nintendo", "Switch", 5));
|
||||||
|
myVideoteca.addVideogioco(new Videogioco("Test2", "Microsoft", "Switch", 100));
|
||||||
|
|
||||||
|
System.out.println(myVideoteca.trova("Nintendo", 1));
|
||||||
|
System.out.println(myVideoteca.trova("Nintendo").toString());
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,34 @@
|
||||||
|
public class Videogioco {
|
||||||
|
private final String titolo;
|
||||||
|
private final String casaProduttrice;
|
||||||
|
private final String piattaforma;
|
||||||
|
private final double prezzo;
|
||||||
|
|
||||||
|
public Videogioco(String titolo, String casaProduttrice, String piattaforma, double prezzo) {
|
||||||
|
this.titolo = titolo;
|
||||||
|
this.casaProduttrice = casaProduttrice;
|
||||||
|
this.piattaforma = piattaforma;
|
||||||
|
this.prezzo = prezzo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getTitolo() {
|
||||||
|
return titolo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCasaProduttrice() {
|
||||||
|
return casaProduttrice;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPiattaforma() {
|
||||||
|
return piattaforma;
|
||||||
|
}
|
||||||
|
|
||||||
|
public double getPrezzo() {
|
||||||
|
return prezzo;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return titolo + " di " + casaProduttrice + " per " + piattaforma + ", " + prezzo + "€";
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,34 @@
|
||||||
|
import java.util.ArrayList;
|
||||||
|
|
||||||
|
public class Videoteca {
|
||||||
|
private ArrayList<Videogioco> giochi = new ArrayList<>();
|
||||||
|
|
||||||
|
public Videoteca() {}
|
||||||
|
|
||||||
|
public void addVideogioco(Videogioco videogioco) {
|
||||||
|
giochi.add(videogioco);
|
||||||
|
}
|
||||||
|
|
||||||
|
public int trova(String c, int k) {
|
||||||
|
int validi = 0;
|
||||||
|
for(Videogioco gioco : giochi) {
|
||||||
|
if(gioco.getCasaProduttrice().equals(c) && gioco.getPrezzo() > k) {
|
||||||
|
validi++;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return validi;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ArrayList<Videogioco> trova(String c) {
|
||||||
|
ArrayList<Videogioco> validi = new ArrayList<>();
|
||||||
|
|
||||||
|
for(Videogioco gioco : giochi) {
|
||||||
|
if(gioco.getCasaProduttrice().equals(c)) {
|
||||||
|
validi.add(gioco);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return validi;
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue