get_state( state_name )

get a state of an object

Params:

  • state_name: the name of the physical state

Return:

  • the value of the physical state, type depend on the physical state
print chair1.get_state('pressure')