Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add generated artifacts for MaterialFlowSimulationResult model #148

Merged
merged 1 commit into from
Apr 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,232 @@
{
"$schema" : "http://json-schema.org/draft-04/schema",
"description" : "Result of a Material Flow Simulation",
"type" : "object",
"components" : {
"schemas" : {
"urn_bamm_io.openmanufacturing_characteristic_2.0.0_Timestamp" : {
"type" : "string",
"pattern" : "-?([1-9][0-9]{3,}|0[0-9]{3})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?",
"description" : "Describes a Property which contains the date and time with an optional timezone."
},
"urn_bamm_io.openmanufacturing_characteristic_2.0.0_Text" : {
"type" : "string",
"description" : "Describes a Property which contains plain text. This is intended exclusively for human readable strings, not for identifiers, measurement values, etc."
},
"urn_bamm_io.catenax.material_flow_simulation_result_1.0.0_BusinessPartnerSite" : {
"description" : "Site identifier of the simulation originator",
"type" : "object",
"properties" : { }
},
"urn_bamm_io.openmanufacturing_characteristic_2.0.0_Boolean" : {
"type" : "boolean",
"description" : "Represents a boolean value (i.e. a \"flag\")."
},
"urn_bamm_io.catenax.material_flow_simulation_result_1.0.0_Text" : {
"type" : "string",
"description" : "Describes a Property which contains plain text. This is intended exclusively for human readable strings, not for identifiers, measurement values, etc."
},
"urn_bamm_io.catenax.material_flow_simulation_result_1.0.0_VolumeCharacteristic" : {
"type" : "number",
"description" : "Volumetric value determining the volume of the handling unit"
},
"urn_bamm_io.catenax.material_flow_simulation_result_1.0.0_WeightCharacteristic" : {
"type" : "number",
"description" : "Amount of weight of the handling unit"
},
"urn_bamm_io.catenax.material_flow_simulation_result_1.0.0_AmountCharacteristic" : {
"type" : "number",
"minimum" : 1,
"description" : "Number describing handling units with identical pieces"
},
"urn_bamm_io.catenax.material_flow_simulation_result_1.0.0_QuantityCharacteristic" : {
"type" : "number",
"description" : "Number of materials contained within a handling unit"
},
"urn_bamm_io.catenax.material_flow_simulation_result_1.0.0_UnitOfMeasurementCharacteristic" : {
"type" : "string",
"description" : "Possible options for units of measurement",
"enum" : [ "KG", "Liter", "Piece" ]
},
"urn_bamm_io.catenax.material_flow_simulation_result_1.0.0_MaterialBatch" : {
"description" : "Material Batches are part of a handling unit",
"type" : "object",
"properties" : {
"batchId" : {
"description" : "ID for the material batch",
"$ref" : "#/components/schemas/urn_bamm_io.catenax.material_flow_simulation_result_1.0.0_Text"
},
"materialNumber" : {
"description" : "ID of the material contained in the batch",
"$ref" : "#/components/schemas/urn_bamm_io.catenax.material_flow_simulation_result_1.0.0_Text"
},
"materialName" : {
"description" : "Name of the material",
"$ref" : "#/components/schemas/urn_bamm_io.catenax.material_flow_simulation_result_1.0.0_Text"
},
"hazardousGoods" : {
"description" : "Flags hazardous goods",
"$ref" : "#/components/schemas/urn_bamm_io.openmanufacturing_characteristic_2.0.0_Boolean"
},
"batchExpirationTimestamp" : {
"description" : "Expiration date of batch",
"$ref" : "#/components/schemas/urn_bamm_io.openmanufacturing_characteristic_2.0.0_Timestamp"
},
"quantity" : {
"description" : "Amount of materials",
"$ref" : "#/components/schemas/urn_bamm_io.catenax.material_flow_simulation_result_1.0.0_QuantityCharacteristic"
},
"unitOfMeasurement" : {
"description" : "Unit used for measuring the quantity",
"$ref" : "#/components/schemas/urn_bamm_io.catenax.material_flow_simulation_result_1.0.0_UnitOfMeasurementCharacteristic"
},
"batchNumber" : {
"description" : "Number of the batch, generated by originator (e.g. from ERP system, no uuid)",
"$ref" : "#/components/schemas/urn_bamm_io.catenax.material_flow_simulation_result_1.0.0_Text"
},
"batchOrderId" : {
"description" : "Order ID to which the batch belongs",
"$ref" : "#/components/schemas/urn_bamm_io.catenax.material_flow_simulation_result_1.0.0_Text"
}
},
"required" : [ "batchId", "materialNumber", "materialName", "hazardousGoods", "batchExpirationTimestamp", "quantity", "unitOfMeasurement", "batchNumber", "batchOrderId" ]
},
"urn_bamm_io.catenax.material_flow_simulation_result_1.0.0_BatchList" : {
"description" : "List of material batches",
"type" : "array",
"items" : {
"$ref" : "#/components/schemas/urn_bamm_io.catenax.material_flow_simulation_result_1.0.0_MaterialBatch"
}
},
"urn_bamm_io.catenax.material_flow_simulation_result_1.0.0_HandlingUnit" : {
"description" : "Handling Unit is the smallest shipment unit and cannot be divided into several shipments",
"type" : "object",
"properties" : {
"handlingUnitId" : {
"description" : "ID of the handling unit",
"$ref" : "#/components/schemas/urn_bamm_io.catenax.material_flow_simulation_result_1.0.0_Text"
},
"name" : {
"description" : "Name of the type of handling unit",
"$ref" : "#/components/schemas/urn_bamm_io.catenax.material_flow_simulation_result_1.0.0_Text"
},
"volume" : {
"description" : "Volume of the handling unit",
"$ref" : "#/components/schemas/urn_bamm_io.catenax.material_flow_simulation_result_1.0.0_VolumeCharacteristic"
},
"weight" : {
"description" : "Weight of the handling unit",
"$ref" : "#/components/schemas/urn_bamm_io.catenax.material_flow_simulation_result_1.0.0_WeightCharacteristic"
},
"amount" : {
"description" : "Number of handling units with identical content",
"$ref" : "#/components/schemas/urn_bamm_io.catenax.material_flow_simulation_result_1.0.0_AmountCharacteristic"
},
"batches" : {
"description" : "List of material batches contained within a handling unit",
"$ref" : "#/components/schemas/urn_bamm_io.catenax.material_flow_simulation_result_1.0.0_BatchList"
}
},
"required" : [ "handlingUnitId", "name", "volume", "weight", "amount", "batches" ]
},
"urn_bamm_io.catenax.material_flow_simulation_result_1.0.0_HandlingUnitList" : {
"description" : "List of handling units included in the shipment",
"type" : "array",
"items" : {
"$ref" : "#/components/schemas/urn_bamm_io.catenax.material_flow_simulation_result_1.0.0_HandlingUnit"
}
},
"urn_bamm_io.catenax.material_flow_simulation_result_1.0.0_Shipment" : {
"description" : "Delivery item from a sender to a recipient containing goods",
"type" : "object",
"properties" : {
"shipmentId" : {
"description" : "ID to identify the shipment",
"$ref" : "#/components/schemas/urn_bamm_io.openmanufacturing_characteristic_2.0.0_Text"
},
"destination" : {
"description" : "Address where the shipment is immediately delivered to (by logistician) or provided for pickup (by producer)",
"$ref" : "#/components/schemas/urn_bamm_io.catenax.material_flow_simulation_result_1.0.0_BusinessPartnerSite"
},
"destinationTimestamp" : {
"description" : "Time when delivery arrives or is ready at goods issue",
"$ref" : "#/components/schemas/urn_bamm_io.openmanufacturing_characteristic_2.0.0_Timestamp"
},
"recipient" : {
"description" : "Address of final recipient of shipment",
"$ref" : "#/components/schemas/urn_bamm_io.catenax.material_flow_simulation_result_1.0.0_BusinessPartnerSite"
},
"recipientTimestampPlanned" : {
"description" : "Planned delivery time",
"$ref" : "#/components/schemas/urn_bamm_io.openmanufacturing_characteristic_2.0.0_Timestamp"
},
"splittingAllowed" : {
"description" : "Permission to split the shipment into individual deliveries",
"$ref" : "#/components/schemas/urn_bamm_io.openmanufacturing_characteristic_2.0.0_Boolean"
},
"logistics" : {
"description" : "Address of logistician executing the shipment",
"$ref" : "#/components/schemas/urn_bamm_io.catenax.material_flow_simulation_result_1.0.0_BusinessPartnerSite"
},
"preceding" : {
"description" : "Reference ID of a preceding shipment",
"$ref" : "#/components/schemas/urn_bamm_io.catenax.material_flow_simulation_result_1.0.0_BusinessPartnerSite"
},
"handlingUnits" : {
"description" : "List of Handling Units",
"$ref" : "#/components/schemas/urn_bamm_io.catenax.material_flow_simulation_result_1.0.0_HandlingUnitList"
}
},
"required" : [ "shipmentId", "destination", "destinationTimestamp", "recipient", "recipientTimestampPlanned", "splittingAllowed", "logistics", "preceding", "handlingUnits" ]
},
"urn_bamm_io.catenax.material_flow_simulation_result_1.0.0_ShipmentList" : {
"description" : "List of shipments contained in the simulation",
"type" : "array",
"items" : {
"$ref" : "#/components/schemas/urn_bamm_io.catenax.material_flow_simulation_result_1.0.0_Shipment"
}
},
"urn_bamm_io.catenax.material_flow_simulation_result_1.0.0_DataQualityOptions" : {
"type" : "number",
"minimum" : 1,
"description" : "Possible values determining data quality",
"enum" : [ 0, 1, 2, 3, 4, 5 ]
}
}
},
"properties" : {
"timestamp" : {
"description" : "Timestamp of simulation run",
"$ref" : "#/components/schemas/urn_bamm_io.openmanufacturing_characteristic_2.0.0_Timestamp"
},
"shipments" : {
"description" : "List of shipments",
"$ref" : "#/components/schemas/urn_bamm_io.catenax.material_flow_simulation_result_1.0.0_ShipmentList"
},
"dataQuality" : {
"description" : "Information on quality of simulation results",
"$ref" : "#/components/schemas/urn_bamm_io.catenax.material_flow_simulation_result_1.0.0_DataQualityOptions"
},
"comment" : {
"description" : "Additional comments",
"$ref" : "#/components/schemas/urn_bamm_io.catenax.material_flow_simulation_result_1.0.0_Text"
},
"expirationTimestamp" : {
"description" : "Date and time when the simulation is expired",
"$ref" : "#/components/schemas/urn_bamm_io.openmanufacturing_characteristic_2.0.0_Timestamp"
},
"runId" : {
"description" : "Id of the simulation run",
"$ref" : "#/components/schemas/urn_bamm_io.catenax.material_flow_simulation_result_1.0.0_Text"
},
"owner" : {
"description" : "Site identifier of the simulation originator",
"$ref" : "#/components/schemas/urn_bamm_io.catenax.material_flow_simulation_result_1.0.0_BusinessPartnerSite"
},
"description" : {
"description" : "Verbal description",
"$ref" : "#/components/schemas/urn_bamm_io.catenax.material_flow_simulation_result_1.0.0_Text"
}
},
"required" : [ "timestamp", "shipments", "dataQuality", "comment", "expirationTimestamp", "runId", "owner", "description" ]
}
Binary file not shown.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"owner" : { },
"dataQuality" : 0,
"description" : "Please simulate asap",
"comment" : "successful simulation ",
"expirationTimestamp" : "2023-03-24T09:15:24.000Z",
"runId" : "0fece48b-c8d1-4180-1a9caca6d67e",
"shipments" : [ {
"handlingUnits" : [ {
"name" : "Palette",
"volume" : 1.0,
"weight" : 189.0,
"batches" : [ {
"unitOfMeasurement" : "KG",
"materialName" : "KK1000GR-Gehäuse-Rot",
"quantity" : 50.0,
"materialNumber" : "KK1000GR",
"batchOrderId" : "Order-0001",
"batchId" : "Batch_1",
"hazardousGoods" : false,
"batchExpirationTimestamp" : "2023-08-22T16:00:00.000Z",
"batchNumber" : "45"
} ],
"handlingUnitId" : "HUT_1",
"amount" : 1
} ],
"shipmentId" : "DE51515151",
"recipientTimestampPlanned" : "2023-04-19T09:00:00.000Z",
"destination" : { },
"recipient" : { },
"logistics" : { },
"preceding" : { },
"splittingAllowed" : true,
"destinationTimestamp" : "2023-03-19T09:00:00.000Z"
} ],
"timestamp" : "2023-03-09T14:13:42.806Z"
}
Loading