mocha-suv/samples/PrepChart/PrepChart.mochax
2025-07-16 18:08:59 -04:00

130 lines
5.7 KiB
XML

<?xml version="1.0" encoding="utf-8" ?>
<!--
Copyright (C) 2025 Michael Becker <alcexhim@gmail.com>
This file is part of mocha-suv.
mocha-suv is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
mocha-suv is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with mocha-suv. If not, see <https://www.gnu.org/licenses/>.
-->
<!DOCTYPE schema SYSTEM "PrepChart.dtd">
<!-- <mocha xmlns="https://schemas.mochapowered.com/MochaX" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="https://schemas.mochapowered.com/MochaX ../mochax.xsd"> -->
<?xml-model href="../mochax.xsd" type="application/xml" schematypens="http://www.w3.org/2001/XMLSchema"?>
<mocha xmlns="https://schemas.mochapowered.com/MochaX">
<library id="com.mochapowered.CBOCSPrepChart_v1">
<baseAddress classIndex="202100" attributeIndex="410000" relationshipIndex="410000" />
<instances>
<class id="&C_PrepChart;" name="Prep Chart" />
<class id="&C_Recipe;" name="Recipe">
<instances>
<instance id="&I_Recipe_Pancake;">
<attributes>
<attribute id="&A_Name;" value="Pancake, *Prep" />
</attributes>
<relationships>
<relationship id="&R_Recipe__has__Recipe_Shelf_Life;">
<targetInstances>
<instance classId="&C_RecipeShelfLife;" instanceId="{a6882b8e-7c29-4bd8-84c5-32df4abd0fe9}">
<attributes>
<attribute id="&A_RecipeShelfLifeValue;" value="9" />
</attributes>
<relationships>
<relationship id="&R_Recipe_Shelf_Life__has__Recipe_Shelf_Life_Measurement_Unit;">
<targetInstances>
<instanceReference instanceId="&I_RecipeShelfLifeMeasurementUnit_Hour;" />
</targetInstances>
</relationship>
</relationships>
</instance>
</targetInstances>
</relationship>
</relationships>
</instance>
</instances>
</class>
<class id="&C_RecipeShelfLife;" name="Recipe Shelf Life">
<attributes>
<attributeReference attributeInstanceId="&A_RecipeShelfLifeValue;" />
</attributes>
</class>
<class id="&C_RecipeShelfLifeMeasurementUnit;" name="Recipe Shelf Life Measurement Unit">
<attributes>
<attributeReference attributeInstanceId="&A_Name;" />
</attributes>
<instances>
<instance id="&I_RecipeShelfLifeMeasurementUnit_Hour;">
<attributes>
<attribute id="&A_Name;" value="Hour" />
</attributes>
</instance>
<instance id="&I_RecipeShelfLifeMeasurementUnit_Day;">
<attributes>
<attribute id="&A_Name;" value="Day" />
</attributes>
</instance>
</instances>
</class>
<class id="&C_PrepCook;" name="Prep Cook">
</class>
<class id="&C_PrepChartRecipeAssignment;" name="Prep Chart Recipe Assignment">
</class>
<attribute id="&A_RecipeName;" index="410001" name="Recipe Name" type="text" />
<attribute id="&A_RecipeShelfLifeValue;" index="410002" name="Recipe Shelf Life Value" type="text" />
<relationship id="&R_Prep_Chart__has__Recipe;" sourceClassId="&C_PrepChart;" type="has" targetClassId="&C_Recipe;" siblingInstanceId="&R_Recipe__for__Prep_Chart;" siblingType="for" />
<relationship id="&R_Recipe_Shelf_Life__has__Recipe_Shelf_Life_Measurement_Unit;" sourceClassId="&C_RecipeShelfLife;" type="has" targetClassId="&C_RecipeShelfLifeMeasurementUnit;" />
<relationship id="&R_Prep_Chart__has__Prep_Chart_Recipe_Assignment;" sourceClassId="&C_PrepChart;" type="has" targetClassId="&C_PrepChartRecipeAssignment;" />
<relationship id="&R_Prep_Chart_Recipe_Assignment__has__Recipe;" sourceClassId="&C_PrepChartRecipeAssignment;" type="has" targetClassId="&C_Recipe;" siblingInstanceId="&R_Recipe__for__Prep_Chart_Recipe_Assignment;" siblingType="for" />
<relationship id="&R_Prep_Chart_Recipe_Assignment__assigns_for__Prep_Cook;" sourceClassId="&C_PrepChartRecipeAssignment;" type="assigns to" targetClassId="&C_PrepCook;" siblingInstanceId="&R_Prep_Cook__has_assigned__Prep_Chart_Recipe_Assignment;" siblingType="has assigned" singular="true" />
<relationship id="&R_Prep_Chart_Line_Item__has__Prep_Chart_Period;" sourceClassId="&C_PrepChartLineItem;" type="has" targetClassId="&C_PrepChartPeriod;" siblingInstanceId="&R_Prep_Chart_Period__for__Prep_Chart_Line_Item;" siblingType="for" />
</instances>
</library>
<application>
<tenants>
<tenant name="cbocs" type="production">
<references>
<libraryReference libraryId="com.mochapowered.CBOCSPrepChart_v1" />
<libraryReference libraryId="{2826E41F-763A-413F-B239-3D9698AB629F}" filename="/usr/share/mocha/system/Mocha.System.mcl" />
</references>
<instances>
<instance classId="&C_PrepChart;" instanceId="&I_PrepChart1;">
<attributes>
<attribute id="&A_Name;" value="Prep Chart 1" />
</attributes>
<relationships>
<relationship id="&R_Prep_Chart__has__Recipe;">
<targetInstances>
<instanceReference instanceId="&I_Recipe_Pancake;" />
</targetInstances>
</relationship>
</relationships>
</instance>
</instances>
</tenant>
<tenant name="cbocs1" type="implementation">
<references>
<libraryReference libraryId="com.mochapowered.CBOCSPrepChart_v1" />
<libraryReference libraryId="{2826E41F-763A-413F-B239-3D9698AB629F}" filename="/usr/share/mocha/system/Mocha.System.mcl" />
</references>
</tenant>
</tenants>
</application>
</mocha>