wiki:UNPLANNED_BASE_MODEL_FRAME_CONTENT_R0

Version 10 (modified by Tanya, 17 years ago) (diff)

--

Analysis

Overview

The frame consists of Frame Style and Frame Content. The frame is one-to-one association with a Frame Content. Each Frame Content is many-to-one association with a resource in the book.

Task requirements

  • Frame content should be:
    • replaceable
    • various kinds(text, audio, video, image, other)
  • It could also be non-defined and unsupported.
  • The user should be able to insert a frame without content and add it afterward or can change the content when he decides. The content is unsupported if it is created with non-present plug-in for example. The frame and the content of the frame can be considered as separated parts.
  • Make basic implementation of the frame content hierarchy. (for example it should be implemented with composition of the frame content in the frame)

Task Result

  • The result should be a wiki page where basic frame content concept is explained and basic implementation is made.
  • The result should be source code.

Implementation idea

  • Write source code.

-

How to demo

  • Open the appropriate wiki page (for example it could be called BASE_MODEL_FRAME_CONTENT).
  • There must be an explanation of the basic frame content concept.
  • There must be class diagram of the hierarchy.
  • Make sure nothing important is dropped.
  • Show source code and run application.

Design

  • Create a wiki page where the result will be stored. For example it can be called BASE_MODEL_FRAME_CONTENT.
  • Frame Content Concept
    • Each frame has style and content.
    • Each frame has one content for a time.
    • The content of a frame is replaceable. For example if a frame has movie content then the same frame can change its content with image content.
    • Different kinds of content:
      • Text content
      • Audio content
      • Movie content
      • Image content
      • Browser content
      • Flash content
      • Pdf content
      • Comment content
    • Frame content can be non-defined or unsupported. The content is unsupported if it is created with non-present plug-in for example. (Explanation of non-defined and unsupported frame content and give examples)
  • Basic hierarchy
    • Base Frame content class
      • Derived classes for all the concrete contents.
    • Class Frame composed with Frame Content.

source:/trunk/sophie2-platform/modules/org.sophie2.messy/doc/FrameContent.png

Implementation

Testing

Log

Analyzing: Pav(done: 10m)
Review: 1.5 by Pap. I don't think that we should spend half of the effort for the whole task in just a wiki page with diagrams. The overview should be more informative. Requirements should be shhorter and better structured.
Analysis2: Tanya - done - 4h
Review: 3.5 by Pap.
Design: Tanya -done - 15m - The design was reused from the previous iteration.
Review: 2 by Pap. No tests are provided. I find it a bit vague.
Implementation:
Testing:
Comments: