Deliver books! Deliver books! 20 Autodesk geographic information system solutions-FDO, MapGuide, AutoCAD Map 3D Secondary Development Guide free !!
Participation method: 1. follow @ du Changyu-junqilian 2 and @ 3 friends 3 subscribe to the Autodesk Geographic Information Technology blog to win the official recommendation materials of Autodesk, A copy of
Tags: des style blog HTTP color Io AR for strong
Autodesk 2014 general installation serial number:666-69696969667-98989898400-45454545066-66666666Autodesk 2014 full range of product keys001f1 autoscaling 2014057f1 AutoCAD LT 20142014 F1 Autodesk 3ds max129f1 AutoCAD Map 3D 2014140f1 AutoCAD OEM 2014151f1 real DWG 2014185f1 AutoCAD architecture 2014200f1 Autodesk
Develop cows, send you an ipad Mini. The Autodesk Exchange Application Publishing contest begins. Summary version: It was delivered to the Autodesk Exchange App Store on September 30 at midnight, and was successfully released before November 30, 2014. Each app is available with:
Toll Application-100 US Knives
Free Apps-50 US knives
Cloud App contest, win ipad Mini, total 5
Condi
The purpose is to not violate the packaging principle. Collects and backs up an object's internal state so that the object can revert to a previous state later.in Memento mode, the following roles are available:1.Memento (Memo)* Store the internal state of the originator. Depending on the needs of the originator. You can store arbitrary internal states.* Protect access to the state. In addition to the origi
Java design pattern-Memento)
Also known as snapshot mode or token ModeA memorandum object is an object used to store snapshots of another object. The purpose of the memorandum mode is to capture the status of the next object and store it externally without damaging the encapsulation, in this way, this object can be restored to the stored state when appropriate in the future. The memorandum mode is often used together with the command mode and iteratio
Memo mode:Without breaking the package, capture the internal state of an object and save the state to the outside of the object so that the object can be restored to the saved state.Without violating encapsulation, capture and externalize an object ' s internal state so, the object can restored to This state laterUML diagram:Mainly include:
Memento (Memento): Stores the internal state of the origin
In the book "Design mode: The basis of reusable object-oriented software" in Gof, the memo pattern is said to capture the internal state of an object without compromising encapsulation, and to save the state outside of that object. The object can then be restored to its previously saved state. Class diagrams and instances: A simple pattern instance:#include #includestring>using namespacestd;classMemento {Private: stringState ; Public: Memento () { st
Http://www.35java.com/zhibo/forum.php? MoD = viewthread tid = 284 extra = Page % 3d1
You want a restoration mechanism in your program. If you directly create a restoration mechanism in the program, this will increase the responsibilities of the object and reduce the reusability of the object.
Instead of building a recovery mechanism in an object, you can remove it from the object. In this case, you can use the memento mode to achieve this functi
Intent
Without violating encapsulation, capture and externalize an object's internal state so that the object can be returned to this state later.
A magic cookie that encapsulates a "check point" capability.
Promote undo or rollback to full object status.
Problem
Need to restore an object back to its previous state (e.g. "undo" or "rollback" operations ).Discussion
The client requests a Memento from the source object when it needs to checkpoint th
Design Mode
---- Memento (
Memorandum
)
Mode
Gof
:Capture the internal state of an object without damaging the encapsulation, and save the state outside the object. In this way, the object can be restored to the previously saved state. The memento mode uses a memento object to store the internal state of another object (the precondition is that the encapsulation
The main purpose is to save a certain state of an object, in order to restore the object at the appropriate time, the individual think that the backup mode is more image, popular: Assume that there are various properties in the original class A,a, a can determine the properties to be backed up, Memo Class B is used to store a some of the internal state, Class C, is a store for the memo, and can only be stored, can not be modified and other operations. Make a diagram to analyzeThe original class
Autodesk Nastran In-cad Win64 1CD 3D design softwareAutodesk, a software company that leads the world in 3D design, covers areas such as entertainment, natural resources, manufacturing, engineering, construction, and civil infrastructure, 2015Nastran 2015 release, the software for FEA solutions that can be used for linear and nonlinear stress, dynamic, thermal conductivity and mechanical componentsAnalysis-You can view the results in real time and mod
Memento mode Source: When designing a software system, we have the right to regret the user (which may actually be the user's right:), and we certainly need to provide actions such as undo for some critical operations. Then this regret medicine is provided by Memento mode.Memento Mode Effect: without compromising encapsulation, capture the internal state of an object and save the state outside that object s
first, what is the memo mode Memento mode, also known as Memo mode, is one of the behavior patterns that is used to preserve the internal state of the object and restore the previous state of the object when needed (Undo/rollback).II. Application Scenarios for Memo mode you can use Memento mode if an object needs to save state and can revert to a previous state by using Undo or rollback.1) A class needs to
Memento mode?
When you use object-oriented Programming to Implement the revocation function, you need to save the status information of the instance in advance. Then, you need to restore the instance to its original state based on the saved information. In this case, you need to use the memento design mode. (And save the instance status)
Keywords:1. Undo (UNDO)2. · Redo (redo)3. · History (History)4. · Sn
/** * Data Object * @author Stone * */public class DataState {private string action;public void Setaction (String action) {This.ac tion = action;} Public String getaction () {return action;}}/** * An object that holds a copy of the internal state of another object. You can then restore the object to its original saved state. * * @author stone * */import Java.io.file;import Java.io.serializable;public class Memento implements Serializable {/ *private
aka Snapshot mode or token modeA Memo object is an object that is used to store a snapshot (snapshot) of the internal state of another object. The memo mode is intended to capture (capture) the state of the next object without destroying the package, and to externalize and store it so that it can be restored to a stored state at the appropriate time in the future. Memo patterns are often used with command patterns and iterative sub-patterns.Roles involved in memo mode: Memo role, initiator role,
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.