@utilities.arguments_not_none<EOL><INDENT>def set_allocated_time(self, time):<DEDENT>
<EOL>if self.get_allocated_time_metadata().is_read_only():<EOL><INDENT>raise errors.NoAccess()<EOL><DEDENT>if not self._is_valid_duration(<EOL>time,<EOL>self.get_allocated_time_metadata()):<EOL><INDENT>raise errors.InvalidArgument()<EOL><DEDENT>map = dict()<EOL>map['<STR_LIT>'] = time.days<EOL>map['<STR_LIT>'] = time.seconds<EOL>map['<STR_LIT>'] = time.microseconds<EOL>self._my_map['<STR_LIT>'] = map<EOL>
Sets the allocated time.

        arg:    time (osid.calendaring.Duration): the allocated time
        raise:  InvalidArgument - ``time`` is invalid
        raise:  NoAccess - ``Metadata.isReadOnly()`` is ``true``
        *compliance: mandatory -- This method must be implemented.*