Skip to content

Lwm2m Object

The Pet

Every virtual pet is a digital entity that simulates the behavior and characteristics of a pet, designed for interaction through the Teamagochi devices and applications.

A pet’s state

The pet state is a comprehensive representation of the virtual pet’s overall situation and consists of three main components: status, conditions, interactions. It is complete in a sense that a syncronisation of the state, in the sense of a digital twin, results in a identical representation.

Status

Refers to permanent characteristics of a pet, such as its species and to quantitative attributes.

All status terms are nouns and are written capitalized, e.g. “Color”, “Happiness”, “Health”.

Examples:

  • The Color of a pet is green.
  • The Happiness of a pet is 23.

Implementation

The status is owned by the Web-Backend application. The device and the frontend application may request the backend for changes through it’s defined interfaces.

LwM2MValue
ID-Range0-19
OperationsRW

Condition

Represents the current physical and emotional state of a pet and is an evaluation of the pet status.

All condition terms are adjectives, e.g. “hungry”, “ill”, “dirty”.

Examples:

  • The pet is currently hungry.
  • The pet is currently dirty.

Implementation

The condition is owned by the Web-Backend application. The device and the frontend application may request the backend for changes through it’s defined interfaces. How the condition is evaluated from the status is defined by the backend application.

LwM2MValue
ID-Range20-39
OperationsRW

Interactions

Describes interaction with a virtual pet.

All interaction terms are verbs, e.g. “feed”, “medicate”.

Examples:

  • I feed the pet.
  • I clean the pet.

Implementation

The interactions are owned by the device and the frontend. The backend must evaluate changes and update a pet’s state accordingly. How interactions affect the state is defined by the backend application.

LwM2MValue
ID-Range40-59
OperationsRW

Object Id 32769

NameIDMandatoryTypeRangeUnitsOperations
Id0YesIntegerRW
Name1YesStringRW
Color2YesIntegerRW
Happiness3YesIntegerRW
Wellbeing4YesIntegerRW
Health5YesIntegerRW
XP6YesIntegerRW
Hunger7YesIntegerRW
Cleanliness8YesIntegerRW
Fun9YesIntegerRW
Hungry20YesBooleanRW
Ill21YesBooleanRW
Bored22YesBooleanRW
Dirty23YesBooleanRW
feed40YesIntegerRW
medicate41YesIntegerRW
play42YesIntegerRW
clean43YesIntegerRW