New model ResourceState

- added new class ResourceState
- added method getResourcesState