'Construct a ``NodeState`` representing the state of this node given a
particular set of applications.
:param list applications: ``Application`` instances representing the
applications on this node.
:return: A ``NodeLocalState`` with shared_state_changes() that
are composed of a single ``NodeState`` representing the application
state only of this node.'

def _nodestate_from_applications(self, applications):

    return NodeLocalState(node_state=NodeState(uuid=self.node_uuid, hostname=self.hostname, applications=applications, manifestations=None, paths=None))
