No format fit for date String [2025-06]

### 解决 Java 中日期字符串格式不匹配的问题 当遇到类似于 `2025-06` 的日期字符串时,如果尝试将其解析为标准的日期对象而未指定正确的模式,则可能会引发异常。为了修复此类错误,可以采取以下措施: #### 使用 SimpleDateFormat 进行严格验证 通过定义明确的时间格式来确保输入数据遵循预期的标准。 ```java import java.text.ParseException; import java.text.SimpleDateFormat; public class DateExample { public static void main(String[] args) { String dateString = "2025-06"; SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM"); try { formatter.setLenient(false); var parsedDate = formatter.parse(dateString); // 尝试解析给定的字符串作为月份级别时间戳 System.out.println(parsedDate); } catch (ParseException e) { System.err.println("Invalid date format: " + dateString + ". Expected format is yyyy-MM."); } } } ``` 上述代码片段展示了如何利用 `SimpleDateFormat` 类处理特定于年份和月份的数据[^1]。设置 `setLenient(false)` 可使解析过程更加严谨,从而防止意外接受不符合设定格式的输入。 对于更复杂的场景或现代应用开发环境而言,推荐采用 `java.time` API 下的相关类库替代旧版 API (`java.util.Date`, `SimpleDateFormat`) 来操作时间和日期信息。以下是基于 `DateTimeFormatter` 和 `YearMonth` 实现相同功能的例子: ```java import java.time.format.DateTimeFormatter; import java.time.format.DateTimeParseException; import java.time.YearMonth; public class ModernDateExample { public static void main(String[] args) { String input = "2025-06"; DateTimeFormatter dtf = DateTimeFormatter.ofPattern("yyyy-MM"); try { YearMonth yearMonthObject = YearMonth.parse(input, dtf); System.out.println(yearMonthObject); } catch (DateTimeParseException ex) { System.err.println("Error parsing the provided date string '" + input + "'. Please provide it in 'yyyy-MM' format."); } } } ``` 此方法不仅提高了可读性和维护性,还增强了跨平台兼容性的表现。

创作声明:本文部分内容由AI辅助生成(AIGC),仅供参考

Python内容推荐

DateUtil:日期操作类  自用

DateUtil:日期操作类 自用

DateUtil 日期操作类 自用 其中包括很多常用日期操作 1.Date --> String 2.String --> Date 3.获取年龄 4.获取两个日期相差的天数 5.Dateformat 6.获取日期中的某数值。如获取月份 7.增加日期中某类型的某数值。如增加日期 8.获取精确的日期 9.判断字符串是否为日期字符串 10.获取日期字符串的日期风格。失败返回null。 11.将日期字符串转化为另一日期字符串。失败返回null。 12.增加日期的年份。 13.增加日期的月份。 14.获取日期的年份。失败返回0。 15.获取日期的月份。失败返回0。 16.获取日期 。默认yyyy-MM-dd格式。失败返回null。 17.获取日期的星期。失败返回null。 . . .

extjs的快速入门教程

extjs的快速入门教程

从网上下载并整理的,在那个论坛里面反映很好,我觉得很不错,可以参考一下。

occam一维反演

occam一维反演

C----------------------------------------------------------------------- program runocc C----------------------------------------------------------------------- c C OCCAM 2.0: Steven Constable IGPP/SIO La Jolla CA 92093-0225 c Program Revision 2.01, 13 Jan 1993 c c runocc is the calling program for OCCAM v2.0. C C REFERENCES: CONSTABLE, PARKER & CONSTABLE, 1987: GEOPHYSICS 52, 289-300. C DEGROOT-HEDLIN & CONSTABLE, 1990: GEOPHYSICS 55, 1613-1624. C CONSTABLE, 1991: GEOPHYS. J. INT. 106, 387-388. C CONSTABLE, 1992: OCCAM DISTRIBUTION NOTES. C C REVISION HISTORY: C MARCH 1986, (VERSION 1.2) C OCTOBER 1987, (VERSION 1.3) C AUGUST 1988, (VERSION 1.4) C JANUARY 1989 (WITH THANKS TO C.DEGROOT-HEDLIN), (VERSION 1.5) C SEPTEMBER 1989, (VERSION 1.5.2) C APRIL 1992 (MORE THANKS TO CATHERINE AND ALSO WSE) (VERSION 2.0) C C IF YOU OBTAIN THIS CODE FROM A THIRD PERSON, PLEASE SEND YOUR NAME AND ADDRESS C TO S. CONSTABLE. YOU WILL THEN RECEIVE UPDATES, NEWS ON BUGS, ETC. C C VERSION 2.0 IS A RE-WRITE TO MAKE OCCAM INDEPENDENT OF THE DIMENSIONALITY C OF THE FORWARD PROBLEM, AND TO MAKE MAXIMUM USE OF DYNAMIC MEMORY ALLOCATION, C AS THE ARRAY SIZES FOR THE 2D PROBLEM ARE NOW GETTING TOO LARGE FOR COMFORT. C INCLUDE FILES ARE NOW USED TO STREAMLINE CHANGES OF DIMENSION. C IMPLICIT DOUBLE PRECISION HAS BEEN REMOVED, AGAIN FOR STORAGE REASONS. C CALLING PROGRAM IS NOW AN INTEGRAL PART OF THE PACKAGE AS ALL THE MODEL- C DEPENDENT STUFF HAS BEEN SPUN OFF. C C IF YOU OBTAIN THIS CODE FROM A THIRD PERSON, PLEASE SEND YOUR NAME AND ADDRESS C TO S. CONSTABLE. YOU WILL THEN RECEIVE UPDATES, NEWS ON BUGS, ETC. C C SUBROUTINES WHICH MUST BE SUPPLIED BY THE USER: C C FORMOD(NP,ND,PM,DP,DM), COMPUTES THE FORWARD FUNCTION FOR MODEL PM() AT C THE DATA PARAMETERS DP() AN

Sakemail

Sakemail

SakEmail components Copyright ?1997 - 2003 Sergio A. Kessler web: http://groups.yahoo.com/group/sakemail/To subscribe to the mailing list of sakemail, just go tohttp://groups.yahoo.com/group/sakemail/History:0.9 - First released version0.9.1b -Fixed when a mail server reply on the connection with more than one line0.9.2b - I forget to return a value in functions retrieveHeader/Message =) and fixed it. Some minor bugs that I don‘t remember fixed.- Added MIME-compliant base64 support (not for use by now). Added examples.0.9.2.1b- Fixed a bug when send a mail and the first line disappear (thanks to Arun)- Now, you could do MySMTP.MsgTo := ‘a@doma.com; b@domb.com;c@domc.com‘; the spaces before/after semicolon doesn‘t matter (I hope ;)).0.9.3b- Many changes, I added a SakMsg component that make send binary attachments a snap. But have one problem, if you send as attach a file > 20 Kb, it doesn‘t work (I don‘t know why, maybe a problem of sockets). Developed with a version 2.0b of WSockets and D3.0.9.3.1b- Changed the POP.login to a function that return the number of new msgs.- Added the event OnRetrieveProgress on the SakPOP, and fixed the example, sorry =)- Minor changes to the code.1.0- Developed with WSockets 1.2 POP.Login now return a boolean depending id the user is authorized, and POP.Init return the number of new msgs.1.01- Fixed a bug with a bounced mail.1.02- Minor bugs fixed (some variants of boundary)14/10/971.1.0- Warning: WSockets1.2 have some bugs that result in bad attachments. So I decided to use the sockets of Delphi 3 founded in D3 c/s D3.01 pro and D3.01 c/s. Now all seems to work fine and much more smooth. And of course the interface of SakEmail hasn‘t changed.26/10/971.2.0- Added the Reply-To field to TSakMsg comp. Now you must use ‘,‘ when you want to send the msg. to multiple recipients, i.e.: ‘a@doma.com, b@domb.com,c@domc.com‘ This change is done for better compatibility with other emails clients.- Better formatting of the field Date of TSakMsg. Some changes to the code.17/11/971.2.1- Now, all searches are made in case-insensitive, it could prevent some unexpected responses (no one reported, but...). Some changes to the code (again).20/11/971.2.2- Some bugs fixed. (Thanks to Serge Wagener from .lu)24/11/971.2.3- Added the field ‘MIME-Version: 1.0‘. It seems that is necessary :)25/11/971.3.0- Added compatibility with SCO and VAX servers. Fixed a minor bug with the boundary.- Change the generator of the message id.- Added the field MessageId and InReplyTo to the TSakMsg component.- Added the field In-Reply-To that is added to the message generated when it is <> ‘‘.30/11/971.3.1- Almost rewrote the parsing code. Now is more easy for you if you want hack/modify the code.- Better treatment of emails with html inside.15/12/971.4- Added support for UUCoded attachments.- Added a small delay when sending the email, seems that some servers can‘t deglut the info too fast, causing problems with sockets buffers and leading to crash the client machine, I don‘t know if is a Borland bug or Microsoft bug. (thanks to Don Higgins).19/12/971.4.1- Fixed a bug that send double ‘<‘ and ‘>‘ (ie. <<ser@dom.com>>) when the full user name is used. Check the new SMTP demo. Thanks to Serge Wagener for locate this bug, track it down and send me the fix.2/2/981.5.0- Added the Canceled property to TSakPOP and to TSakSMTP. Due to this addition now RetrieveAllMessages is a function that return the number of msgs. retrieved and SendMessage is a boolean function (maybe someone has pressed the cancel btn).- Fixed a bug when the subject field is too large.9/2/981.5.1- Fixed a bug with a message within a message (recursive msgs).18/2/981.5.2- Fixed a bug what happens when after the field ‘To:‘ appear a blank line(Thanks to Osvaldo Fillia). Fixed a bug when sending email to more than two address (the separator is still ‘,‘).9/3/981.6.0- Sometimes the filenames of an attachment contain invalid chars making very dificult to open a TSaveDialog (you have noted this ?), now SakEmail deletes the invalid chars.- Applied a patch from Matjaz Bravc, that resolve the problem of localized dates, letting you choose (in design time) if you want localized dates (NOT recommended) or standards dates (english) via the LocalizedDates boolean property in the TSakSMTP comp. Thanks also to Serge Dosyukov for sending me a fix.- Also I applied another patch of Gregor Duchalski that cure a bug with PChar when this unit is used under NT. - It seems that some machines need more delay when sendig a msg (see previous posting 19/12/97), thanks to Matjaz Bravc.- I discover a bug in the transparency code, it is fixed now. Did you see the benefits of Open Source Software ? :)26/3/981.6.1- Added a FUNCFileName private variable to manage the complete path of the attached file. I receive problems reports with this, it work now ?.- Reduced the line sleep to 30 (tell me if this value doesn‘t work for you).27/4/981.7.0- Fixed a memory leak, thanks to Don Higgins.- Moved the string esErrorInFormatOfMsg to a property of SakPOP.- Because some people need to use IP addresses instead of Host names, I‘ve added a new property IPAddress to SakPOP and SakSMTP. If both are filled, then the Host name will be used, thanks to Roger F. Reghin for reporting this. The side effect for this is that YOUR app must check if the host is a host name or a IP address, in my app I remove the periods and try to convert the result to a float (long integers don‘t work, but float accept chars ‘e‘) if it doesn‘t work I assume that is a host name (someone has a better and simple idea ?).- Added the property FileStream to the class TAtachedFile and the procedure SaveToStream, this was done by Brian Sheperd- The address separator (in the TO: field) is ‘,‘ and ‘;‘ now (before it was ‘,‘ only).1.7.1- Roger F. Reghin has sended me a pair of nice patches that resolve in a good behavior when the destination address is something like &quot;Roger Reghin&quot; <rreghin@hotmail.com> and some servers says that they couldn‘t relay that mail, etc. Also Roger has made the IPAddress property obsolete (do not use it, use Host instead), SakEmail will resolve the host properly no matter if it is a host name or a IP address. So in the next version I will remove the IPAddress property. Thank you, Roger.1.8.0- Well, it seems that I made a mistake, I investigated the previous behavior and it is a fault of the SMTP (RFC 821), so I fixed it.- The IPAddress property has been removed, use Host. Goeran Strehl (asem) has sended me a patch that fix a memory leak and one problem with the object inspector and the Text property of a SakMsg. Dmitry Bondarenko say that some servers do not send the msg size after the RETR command, so he fix that issuing a LIST n command first (work nicely).- Added the property CC (Carbon Copy) to the SakMsg object.1.8.1- Added the property ReturnPath to the SakMsg comp. Minor changes to the scanning code for the filename of attachments.1.8.2- Fixed a bug with the filename of attachments (thanks to Taufer Pavel Ing.).- Added the function IsIPAddress from hou yg (the actual code don‘t work if the server is 265.net :) Fixed a minor bug with html pages like attachments. Some fucking email server return a bounded message declaring the boundary like ‘boundary = ‘ and not ‘boundary=‘ wich is clear in the RFC, fixed.1.8.3- A obscure bug was found by HuangYeJun from china, in the RetrieveHeaders function if the retrieved text was larger than 1024 bytes and the crlf.crlf fall in the middle of two chunks, the function is blocked. I don‘t use this function, btw.1.8.3.1- Just cleaned up a bit the FindUUAtachs function. Not bug or enhancements release. Serge Wagener put me to work >:|1.8.4- Dmitry Bondarenko (again) has found a bug in wich I do not respect the RFC, wich say that replys from the SMTP server could be multi-line, and the previous version just manage as far as two lines. He also send me a nice patch, so the bug is fixed.- Craig Manley added a ExtraHeaders property, please, use with care, it‘s just not valid to put inside it whatever thing.- The CC header was not being added to the headers that were being sent, so Craig fixed it.- Warning: I‘ve put try/except in the TSakPOP.Connect and TSMTP.Connect function around the line FSocket.Open, so you will need to write something like: myPOP.Connect; if POPError then ... in your code, the old way was: try myPOP.Connect; except ..... end; If you are strongly opossed to this change, drop me a line and tell me why (I‘m in doubts).1.8.5- Greg Nixon added the priority property. The default priority for each msg created will be prNormal, so you don‘t need to change your code any bit.1.8.6- Ulf Sturegren has added D4 compatibility, not many changes to the source (one letter), but he found the error.- Hou yg has sent to me a revisited IsIPAddress function, so I put the newer function in, infortunely my reply to him doesn‘t want to go.1.8.7- Ok, I discovered a weird bug, some old emailers (navigator 2) does not format the message in multipart mode if people send an attach, without writing any text and with no MIME settings. Fixed. This could be serious, I recommend upgrading.1.8.8- A small fix with the CC field. Some stupid mail servers put tabs in some fields (CC:, TO:) when they want to make a new line, the correct is to put at least a space in the beginning of the line, added a little code to &quot;fix&quot; that.1.8.9- Some ‘moderns‘ pop3 servers doesn‘t support the LAST command, so I‘ve added a little code to cope with this and added a boolean property ServerSupportLastCmd. See TSakPOP.Init for more details. Reported by Jan Najvarek.1.9.0- Kaufman Alex has added two properties to the SakMsg object, the ContentType and the Headers property, that should be self explaining (I modified a little the code he sended me, btw).1.9.1- I rewrote and greatly simplified the code that deal with the multiple address in the TO: field and remove some possible bugs in it.1.9.2- Alex discovered and fix a bug when a file attached is not enclosed between quotes, resulting in the filename without the first and last character.1.9.3- Better detection of the boundary in multipart messages. Fixed a bug when the attached file is empty.1.9.4- Chris G黱ther send me *lots* of memory leaks fixes, very good job, Chris. - Some weird PGP messages are now processed well.- Yang Qiandong from china fixed a compiler hint and a warning.- Modified TSakSMTP.FReceiveTextFromSocket as suggested by Greg Nixon.- Dmitry Bondarenko send me a patch that fixes some issues with the LAST command (that some servers don‘t implement) and other patch that fixes a problem when servers add spare words in the tail of the answer.- Some minor changes suggested by Matthew Vincent.- Support for _big_ attachments files (me).- Make the code more modular and simple (still is not very modular).1.10.0- Move some stuff to a sak_util unit.- Support for quoted-printable msgs, thanks to Chris G黱ther.- Fix the BCC field.- New property sakMsg.ContentTransferEncoding.2.0.0- Major reestructure of the files and the source code.- Simplifyied sakPOP3.pas a _lot_- Support encapsulated messages (message/rfc822).- Nested multipart messages are processed fine.- Attachs with quoted-printable are processed fine.- Many bugs fixes.2.0.1- A fiasco, sorry.2.0.2- Fixed a bug in the sak_CleanUpAddress.- Do the rigth job if the ContentType is ‘plain/text‘ and the encoding is base64.- Redone sak_ExtractAddress and sak_ExtractAlias.- New ‘Sender‘ property in SakMsg (normally not used, so do not use it, unless you know what you are doing) ‘Thanks‘ to Alex Kaufman for this.2.0.3- A *severe* bug with multiple addresses was fixed.2.0.4- Fixed bogus Message-number (Message-id is the correct) Thanks to Peter Honan- Added SizeInBytes property to the SakMsg component. (petition of Alex Kaufman)- Fixed a minor bug in TSakPOP.RetrieveHeaders. Fix from Alex.- Added RetrieveMessageOnlyHeaders and - RetrieveAllMessagesOnlyHeaders.2.0.5- Fix when the mail server reply is like <cr><cr><lf> (two cr).- Fix function IsIpAddress.- Both fixes by Alessandro Rossi.2.0.6- Fix a bug in the sak_Base64Decode function when the data to decode is null (I found it in the hard way).- Andy Charalambous make it sure you can send more than one email without disconnecting and connecting again.- And Chris ‘Memory Hunter‘ G黱ther killed some memory leaks (again).2.2.0- the f* sleep line that was bothering us for years is gone, gone, gone. Thanks to Syed Ahmed.- a getUIDL method of SakPOP. Thanks to Alex Kaufman.- a UIDL property on SakMsg. (me)- a SakPOP.GetUIDLsOnRetrieve boolean property (default false) (me)- change some ‘Exception.Create()‘ to ‘raise Exception.Create()‘ Thanks to Anton Saburov.- change SakPOP.Init from function to procedure (me)- new SakPOP.NewMsgsCount property (me)- changed SakPOP.Password to SakPOP.UserPassword (me)- changed SakPOP.ErrorInFormatOfMsg to SakPOP.StrErrorInFormatOfMsg- OnLookup event on SakPOP and SakSMTP. Thanks to Syed Ahmed.- OnConnecting event on SakPOP and SakSMTP (me).- OnReceiveTextFromSocket event on SakPOP and SakSMTP (me). (mostly for debug)- OnSendTextToSocket event on SakPOP and SakSMTP (me). (mostly for debug)- Headers are retrieved without the mail body (ugly bug, fix from Alex Kaufman)2.4.0- I‘ve revamped TSakMsg, many funcionality from SakPOP was moved to SakMsg, where it belongs.- Now SakMsg has a RawMail property wich you may find useful, now you can do: SakMsg1.RawMail.LoadFromFile(‘(uidl).mail‘); SakMsg1.ParseMsg; or SakMsg1.RawMail.LoadFromStream( myStream); SakMsg1.ParseMsg; or SakMsg1.RawMail.SaveToFile( ‘(uidl).mail‘); etc, etc...- Added a property TSakMsg.ClearRawMailAfterParse for memory saving.- the return of the f* sleep line (it causes freezes on winsock 1.1 systems like win95, win98 has winsock 2 so there is no problem if you remove the line)- lost of the DecodeProgess events :( (sorry, I don‘t know how to fit this events on the new SakMsg)2.6.0- the sleep() line is dead, it will never come back. Sending an email is a pleasure now.- SakMsg has a TextEncoding (8Bit, Base64) property, I think this will be useful to people with others charset than iso-8859-1- the base64 routines have been rewritten, they are more OO and faster (they are now in SakMIME.pas).- cosmetic changes all over the place.2.6.1- simplifyed ParseMsg2 a lot, it work better now.- speed up the search for uucoded attachs (the previous search was very dumb)- fixed bug Msg.SizeInBytes always 0- added a couple of Application.ProcessMessages to make the app more responsive.2.6.2- moved some functions from sak_utils to SakMIME.- make const parameters all over the place.- fix the bug that introduces a final crlf in quoted-printable attachs.- fix a division by zero if attached file is 0 bytes long, fixed by Peter Kollanyi.2.6.3- fix a rare bug when the header of a email (more probably a encapsulated one) has first line/s in blank. Easy and innocuous bug.2.6.4- fix the bug that insert the attachs of type text/* on the body of the email.- change the Smtp.SendMessage for Smtp.SendTheMessage to avoid a BCBuilder problem. Both problems reported by Andreas Franzen. SendMessage is still there, but it‘s now deprecated, I will remove it in the future.2.6.5- moved the ParseMsg activation from SakPOP to SakMsg (where it belong), this means that after setting the RawMail property of SakMsg, this does a ParseMsg automatically. before: SakMsg1.RawMail := ... SakMsg1.ParseMsg; now: SakMsg1.RawMail := ... hope I‘m not breaking too much code out there ... :)- some changes in the way attachments are processed (now the html part is separated correctly and images within the html are recognized)- RetrieveMessage() and RetrieveMessageOnlyHeaders() now take an additional parameter, a TSakMsg var, so people can change some parameters before parsing, see the source in SakPOP3.pas (the old way is still supported, but they will be removed in the future)- bug fixes that I do not remember.3.0.0- moved code around.- removed deprecated functions (I told you about this)- new SakAttFile unit.- Base64Encode( AttFile), Base64Decode( AttFile), UUDecode( AttFile) has been moved to the TAtachedFile object, so you can do AttFile.Base64Encode, AttFile.Base64Decode, etc- SakSMTP have lost EncodeStart, EncodeProgess and EncodeEnd events as a consequence of the previous change.- SakPOP.Canceled and SakSMTP.Canceled properties have been made read-only and SakPOP.Cancel and SakSMTP.Cancel procedures (or methods) have been added.- add a SakMsg.FillRawMail method that will fill the RawMail property with a rfc822 message based on the properties of SakMsg.- changed SakSMTP.Quit & SakPOP.Quit to Disconnect- deleted TAttachedFile.FileStream (redundant), use BodyBin- removed the function sak_getTempFileName (as it should no be trusted) use function sak_GetTempPath- the new SakIMAP component !, this make a pleasure to work with incoming emails (as you can have folders, etc). Note: the IMAP component has only been tested with the Uni. of Washington server, but it should work with any *STANDARD COMPLIANT* server. Anyways, the code of this component is very simple, so if you have problems, a look in the source code can enligthen you.3.0.1- fixed a brown paper type of bug.3.0.2- support the case where attachs do not come from files (Lars Karlslund)- minor bugfix in UUDecode function (Lars Karlslund)- if the SakMsg.Username is empty, do a VRFY command at the smtp server to try to get the full user name (sergio)- function TSakIMAP.GetFolderList (Peter Nagel)- function TSakIMAP.GetHierarchyDelim (Peter Nagel)- frustrated intent (ie. commented out) to remove memory leaks in POP, SMTP & IMAP destroy functions (Ronald Moesbergen)3.0.3- actually create (and free) the FolderList in sakIMAP (Neculau Andrei)- try to send the FQDM to the HELO command in SMTP (sergio)- commented out the VRFY command in SakSMTP, and cut the from address in the From field (in SakMsg), so if the username is empty, the SMTP server rewrite the from address in a complete way, with username & full address (sergio)- fix a minor bug in TBase64DecodingStream.Write function (Lars Karlslund)3.4.0- many, many improvements to the IMAP component by Peter Honan (I applied the patch with minor modifications, mainly to respect delphi coding standard, taking out the overloading, the selectFolder function was overcomplicated, etc)- FAQ updated (me)3.4.1- minimize the chance for two temporal messages stored on disk to collide (can be hit in previous versions if you run multiple instances of retrieveMessage at the same time)- FAQ updated.3.4.2- a new sak_CleanUpAddresses() implementation, by Knut Baardsen- better handling for temporal messages, suggested by Andrew- many improvements (including ACL -Access Control List) to the IMAP component by James Chaplin3.4.3- reverted to the old sak_CleanUpAddresses() implementation Knut‘s one is almost rigth, but don‘t let us use addresses without domains- add Headers.Clear before filling headers, by &quot;Antonio Carlos Ribeiro Faria&quot; <consultor@cys.com.br>3.5.0- add TSakMsg.LoadFromTextFile from Oak Chantosa- big jumbo mambo patch from James Chaplin first patch: 1) Operation timeout - OperationTimeout timeout for non-responding receive operations. 2) Forced abend - ForceAbend method that will disconnect and reset state. 3) Optional folder lists - AvFolderList and AvSUBFolderList provide alternatives to FolderList and SUBFolderList that ensure the lists do not contain inacessible folders ( flagged by the server ). 4) Folder name fix - Provided a function to &quot;fix&quot; folder names before submission. Currently it fixes names containing spaces. second patch: 1) Capability - Ask for server capabilities/extensions. 2) Noop - Basic noop command - updates message counts as well - preferred alternative to status. 3) Status - Explicit status command - generally useful for status of a non-selected mailbox. 4) Fetch - Retrieve message data. 5) FetchBody - Retrieve the body of the message. 6) ExamineFolder - A read-only select command. 7) CloseSelectedFolder - Close the currently selected folder. 8) Idle - RFC2177 extension - not implemented on very many servers. 9) Search - Search based on RFC2066 criteria. 10) UIDSearch - Search based on RFC2066 criteria - results are in UID form. 11) UIDStoreFlags - Store message flags based on UID. 12) UIDFetch - Fetch message data by UID. 13) UIDCopyMessageToFolder - Copy a message by UID. 14) Authenticate - Basic framework. Only plain authentication extension implemented. 15) CloseOnError - A new property that allows the user to turn off the default behaviour of disconnecting from the server when an IMAP error is received 16) Namespace - RFC2342 Namespace query command. 17) ListFullHierarchy - Property which allows a switch between &quot;*&quot; ( default ) or &quot;%&quot; as the wilcard for default folder/list methods. 18) List - Explicit list command in case it is needed. third patch: 1) fix problem with imapd 2001a, reported by Holger Mauermann. 2) remove all warnings.3.5.1- revert change to the base64 encoding routine.3.5.2- changes from James Chaplin: 1) TSakIMAP will now properly process non-numeric UIDs for messages ( there was a sak_StrWord2Int transform being used before - which always produced a 0 value for non-numeric UIDs ). 2) TSakIMAP.RetrieveMessageExt ( private method ) was modified to provide a retrieval by either MsgID or UID. 3) TSakIMAP.RetrieveMessageByUID was modified to use the slightly more efficient TSakIMAP.RetrieveMessageExt(UID) method specified in 2) above. I also made an update to the SakMIME.pas unit. The changes that were implemented are: 1) sak_Base64Encode - a basic Base64 encoder. String input and string output with the option for CRLF splitting. 2) sak_Base64Decode - a basic Base64 decoder. String input and string output with a control for CRLF interpretation. 3) sak_Base64Verify - a very basic Base64 string verifier.3.5.3- robustify and code cleanups by Paul Vernon.3.5.4- access violation fix by Paul Vernon.3.5.5- go back to good old trusty 3.5.23.5.6- this time, all the cleanup & fixes from Paul Vernon seems to work well.3.6.0- Paul Vernon latest minor fixes- added basic SMTP authentication, by Delfi and Antonio Carlos Ribeiro Faria3.6.1- fix a mayor bug when sending to many addresses (by sergio)3.7.0- add full support for html mails, by Paul Vernon. (The TAttachedFile now has an extra boolean property called embedded. This property lets you use the syntax <img src=DownloadFiles2&quot;CID@myimg.gif&quot;> in your HTML mails)- fix a weird typo for BCC fields- add Content-ID, by alejandro Castro- fix &quot;_&quot; characters in subject, regression fix.- cleanups all around, by Paul Vernon.- SMTP example updated to cope with html emails.**warning** from this version, the html part of mails will not be stored as attachments by default, if you want this behavior, you just do something like: aSakMsg := TSakMsg.Create( self); aSakMsg.HTMLAsAttachment := true; ...3.7.1- fix TSakMsg.PopulateList (Jalin)3.7.2 (codenamed &quot;melissa&quot;)- fixed a bug when the Populatelist procedure got re-written in sakMsg. It wasn‘t populating the SendTo field if there was only one e-mail address... (Paul Vernon)3.7.3 - Congratulations to Sergio on the addition to his family. This release was made by Paul Vernon who has temporarily taken over the release functions for the SakMail components whilst Sergio spends time AFK!- The 3.7.2 bug fix added blank entries to the address lists. The PopulateList procedure has been re-written again to hopefully cope with any type of e-mail address formatting.- The SMTP example noted in 3.7.0 actually shipped with this release!3.7.4- Bugfix for detecting UUEncoded mails correctly. Previous versions processed MIME mails with the value ‘begin xyz‘ if it appeared at the beginning of a line as a UUEncoded mail when they should not have.- POP and SMTP connect procedures are now functions. Existing code is unaffected. However, you can now use the following code if (sakPOP.Connect) then begin end;- POP gracefully quits if it receives an error now by calling Disconnect correctly.3.7.5- Further code to improve identification of UUEncoded mails. Essentially looking for the end as well as the beginning to ensure that it is correct.- Code optimisation of certain UUEncoded mail id functions.- Fix to ensure that the body of a mail that is UUEncoded is not lost.- MIME-Version string introduced into TsakMsg component to help with UUEncoded mail identification.- SizeInBytes property altered to read private variable using a function. If the private variable is 0, the function reads the length of the FRawMail.Text property.- Fix to make sure that the filename is not overwritten by a blank value when parsing mail-headers.3.7.6- Fixed list index out of bounds error.- Added POP3 RSET call TSakPOP.Reset.3.7.7- Altered SizeInBytes and Octets values to return server-side size when d/l headers only and use actual size once the entire message is downloaded.- Fixed a bug in GetBasicHeaders where To and CC fields could be mishandled if the mail headers were formed in a particular way.4.0.0 beta- All methods are now wrapped in classes. sak_util is now included for backwards compatibility only.- Several changes to make sakMail thread safe including the introduction of Mutexes which are cross process safe. Critical sections were an option however, although mutexes are a little slower, they are much more effective when you aren‘t sure how the code is going to be deployed...- Made several changes to the way connections are tracked, now making better use of the underlying Delphi components own properties and functions.- Several bug fixes included from solutions posted on mailing lists. Including change to datetime function to respect local time separator. There are more including one that Adem re-raised.- Removed almost all pointers as per Adems suggestion. Makes for neater code.- Hopefully backwards compatibility is kept. This is one of the objectives of the excersice although, internally, the components no longer use any of the non-object based methods. Also some of the non-object based methods actually have been re-written to create an object use the instance of the original method and then destroy the object again. This introduces a minor overhead however, because the objects are discreet, the trade is for much better memory usage and greater thread safety.- Introduced an include file to define compiler directives. Currently there are two directives. One defines whether to use the VCL or not, the other defines whether or not to use the FastStrings components. - With the intoduction of the Include file, this allows the development of code that is optional for users. One of these such changed is the use of the FastStrings base64 decoder. If you install the FastStrings components and turn on the compiler directive, you should have no functional changes however, the base64 decoder routines should have a much higher performance rating. Tests clock in at over 2000% faster attachment decoding on a P4 1.8GHz machine. (1.2Mb file 1686mS native sak Base64 Decoder, 79mS using FastStrings!)- This version is being released as a beta as the changes are pretty drastic. If the code is deemed to be stable and backwards compatible then it will be re-released as v4.0.1 with no changes.4.0.1 beta- Fixed an issue where Range Checking highlighted that the Attachment b64 decode routine raise a Range Error if the line that was to be decoded was empty. i.e. ‘‘.- Introduced a compiler directive to turn off range checking in the sakMIME procedure TBase64DecodingStream.Write to make sure that it runs correctly as Range Checking causes issues in this function.4.0.2 beta- Changed MailDateToDateTime function to the one provided by DengZhaoHui with a few modifications as even though it has better date processing than the original it caused EConvertErrors with some non-rfc dates.- Added the compiler directive to allow the inclusion of MD5 components from the DCPCrypt suite of encryption components. This allows the components to do APOP and SMTP AUTH functions as specified in RFCs 2095, 2104, 2449 and 2554. {UseDCP} ***** NOTE: These functions are experimental as although they are RFC compliant, they have not been tested against a secure mail server yet... *****- Using EurekaLog during load testing of the POP mail component, found and fixed several AV‘s in sakMSG, sakMIME and sakPOP. Mainly simple mistakes that required re-ordering of code or more checks before trying to manipulate data.- Altered the sockets code to be more stable with some servers. The previous implementation was totally incompatible with SendMail NT v3.0.2.- Fix added to compensate for incorrect operation of Connected property in some versions of Delphi.- Altered GetMultiLineFieldBody as per Adems suggestion. Also took some of Adems code and added it to GetFieldValueFromLine as the escape characters can appear in single line headers as well as multi-line ones.- TClientSocket is deprecated in Delphi 7. This may be the next large change in the sakEmail components. - Updated distribution to include more RFC‘s regarding the message format, POP and IMAP and hashing functions for CRAM mechanisms.- Fixed the handling of redirected mails as created by Eudora.- Force PopulateList to clear the list before populating it again.- Created a Delphi 6 package file.4.0.3 - Fixed AUTHSMTP buffer initialisation error. (Dmitry G. Kozhinov and Gabi Slonto)- Improved identification of servers that do not support the UIDL command. A small overhead is intorduced on servers that do support the command and have several mails to download but the feature allows better interaction with those servers that do not support UIDL.- Priority is now reported correctly when an e-mail is being decoded rather than only being used when sending an e-mail.4.0.4- Fixed an issue with a malformed header in a mail sent from MS Word through an Exchange server- Added a couple of try...finally blocks to the sakIMAP component.- Altered the sakIMAP components connected function to mirror the more accurate sakPOP method.- Consolidated all compiler directives into sakDef.inc- Added versioning compiler directives to allow the compilation of sakemail under Delphi 4.- General tidying of code. 4.0.5- Created a Delphi 7 package- Added properties to the IMAP component to allow read access to the LocalAddr and LocalHost socket properties.- Bugfix to sakMsg PopulateList function where a comma separated list did not contain any spaces- Access violation in sakPOP component due to incorrect use of free,freeandnil and compiler directives4.0.6- Added several features to the IMAP components.- Tidied up SMTP authentication routines (Improved use of MD5 for authentication using DCP components)- Included capability to send messages without an SMTP server (using Indy DNS components for MX lookups)- Bugfix in message parsing to stop a recursion loop due to a malformed mail.4.0.7- Memory leaks found by Amos and Paul regarding the sakMsg and sakPOP units respectively.- Bug fixes to attachment save code including stripping out invalid .. sequences from filenames- Improved the GetConnectedState method to check against the RemoteHost value on the Socket.- Updated POP example to be more responsive when downloading mail. Fixed a memory leak.Don‘t forget to subscribe to the mailing list (see the web pages at http://groups.yahoo.com/group/sakemail/)

ExtJSWeb应用程序开发指南(第2版)

ExtJSWeb应用程序开发指南(第2版)

前言 第1章 认识ExtJS 1.1 ExtJS的精彩表现 1.2 ExtJS的前世今生 1.3 是否真的需要学习ExtJS 1.4 ExtJS4.0新特性 1.5 ExtJSUI组件基础 1.6 了解一下类似技术 1.7 本章小结 第2章 开始ExtJS之旅 2.1 认识ExtJS的开发包 2.2 也从Helloworld开始 2.3 ExtJS中的基本概念 2.4 非常有用的开发工具 2.4.1 开发插件spket 2.4.2 FullSource 2.4.3 MicrosoftScriptDebugger 2.5 ExtJS对原有JavaScript对象的扩展 2.5.1 Ext.Array 2.5.2 Ext.Date 2.5.3 Ext.Function 2.5.4 Ext.Number 2.5.5 Ext.String 2.5.6 Ext.Object 2.6 本章小结 第3章 ExtJS4.0的基本功能 3.1 ExtJS组件配置说明 3.1.1 JSON介绍 3.1.2 ExtJS组件配置方式介绍 3.2 信息提示框组件介绍 3.2.1 认识Ext.window.MessageBox 3.2.2 Ext.MessageBox.alert() 3.2.3 Ext.MessageBox.confirm() 3.2.4 Ext.MessageBox.prompt() 3.2.5 Ext.MessageBox.wait() 3.2.6 Ext.MessageBox.show() 3.2.7 Ext.window.MessageBox的其他功能 3.3 进度条组件介绍 3.3.1 认识Ext.ProgressBar 3.3.2 手工模式的进度条 3.3.3 自动模式的进度条 3.3.4 自定义样式的进度条样式 3.4 实现工具栏和菜单栏 3.4.1 认识Ext.toolbar.Toolbar 3.4.2 只包含按钮的简单工具栏 3.4.3 包含多种元素的复杂工具栏 3.4.4 启用和禁用工具栏 3.4.5 认识Ext.menu.Menu菜单 3.4.6 最简单的菜单栏 3.4.7 创建二级或多级菜单 3.4.8 将更多组件加入菜单 3.4.9 具有选择框的菜单 3.5 本章小结 第4章 最常用的表单 4.1 表单及表单元素 4.1.1 了解Ext.form.Basic基本表单 4.1.2 认识Ext.form.Panel表单面板 4.1.3 Ext.form.field.Base基础表单字段 4.1.4 Ext.form.field.Text文本域 4.1.5 Ext.form.field.TextArea文本区 4.1.6 Ext.form.field.Number数字输入框 4.1.7 Ext.form.field.Checkbox复选框和Ext.form.field.Radio单选框 4.1.8 Ext.form.CheckboxGroup和Ext.form.RadioGroup 4.1.9 Ext.form.field.Trigger触发字段 4.1.10 Ext.form.field.Spinner微调字段 4.1.11 Ext.form.field.Picker拾取器字段 4.1.12 Ext.form.field.ComboBox组合框 4.1.13 Ext.form.field.Time时间选择框 4.1.14 Ext.form.field.Date日期选择框 4.1.15 Ext.form.field.Hidden隐藏字段 4.1.16 Ext.form.field.HtmlEditor编辑器字段 4.1.17 Ext.form.field.Display只读文本字段 4.1.18 Ext.form.Label标签字段 4.1.19 Ext.form.FieldSet字段集 4.1.20 Ext.form.FieldContainer容器字段 4.1.21 Ext.form.field.File文件上传字段 4.2 实现表单验证 4.2.1 常见的验证类型 4.2.2 表单验证(VType) 4.2.3 自定义VType验证 4.3 表单的提交和加载 4.3.1 Ext.form.action.Action基础 4.3.2 Ajax模式的表单数据加载 4.3.3 Ajax模式的表单数据提交 4.3.4 标准模式的表单数据提交 4.3.5 使用Direct技术 4.4 本章小结 第5章 面板及布局类 5.1 面板panel 5.1.1 认识Ext.panel.Panel 5.1.2 Ext.panel.Panel的主要功能 5.1.3 使用Ext.panel.Panel 5.2 标准布局类 5.2.1 Auto自动布局 5.2.2 Fit自适应布局 5.2.3 Accordion折叠布局 5.2.4 Card卡片式布局 5.2.5 Anchor锚点布局 5.2.6 Absolute绝对位置布局 5.2.7 CheckboxGroup复选框组布局 5.2.8 Column列布局 5.2.9 Table表格布局 5.2.1 0Border边框布局 5.2.1 1Box盒布局 5.3 使用ViewPort 5.4 Ext.tab.Panel页签 5.5 本章小结 第6章 常用工具类与函数 6.1 非常有用的Ext.core.Element 6.2 Ext常用函数 6.2.1 Ext.onReady() 6.2.2 Ext.get() 6.2.3 Ext.select() 6.2.4 Ext.query() 6.2.5 Ext.getCmp() 6.2.6 Ext.getDom() 6.2.7 Ext.isEmpty() 6.2.8 Ext.namespace() 6.2.9 Ext.each() 6.2.1 0Ext.apply() 6.2.1 1Ext.encode() 6.2.1 2Ext.htmlDecode() 6.2.1 3Ext.typeOf() 6.3 Ext.core.DomHelper 6.3.1 Ext.core.DomHepler.append() 6.3.2 Ext.core.DomHelper.applyStyles() 6.3.3 createTemplate() 6.3.4 insertAfter() 6.3.5 insertBefore() 6.3.6 insertFirst() 6.3.7 insertHtml() 6.3.8 overwrite() 6.4 Ext.core.DomQuery 6.4.1 compile() 6.4.2 filter() 6.4.3 is() 6.4.4 jsSelect() 6.4.5 selectNode() 6.5 Ext.util.CSS 6.5.1 createStyleSheet() 6.5.2 getRule() 6.5.3 swapStyleSheet() 6.5.4 removeStyleSheet() 6.6 Ext.util.ClickRepeater 6.6.1 click() 6.6.2 mousedown() 6.6.3 mouseup() 6.7 Ext.util.DelayedTask提供setTimeout的简单替代 6.7.1 cancle() 6.7.2 delay() 6.8 Ext.util.Format提供常用的格式化方法 6.8.1 ellipsis() 6.8.2 capitalize() 6.8.3 date() 6.8.4 htmlEncode() 6.8.5 htmlDecode() 6.8.6 stripTags() 6.8.7 substr() 6.8.8 lowercase() 6.8.9 number() 6.8.10 round() 6.9 Ext.util.JSON编码和解码Json对象 6.9.1 decode() 6.9.2 encode() 6.10 Ext.util.MixedCollection 6.10.1 向集合加入对象 6.10.2 将数组中的对象加入到集合中 6.10.3 移除集合中的对象 6.10.4 克隆集合 6.10.5 匹配集合中关联对象 6.10.6 迭代集合中的对象调用指定的方法 6.10.7 获取集合中的对象 6.10.8 该类中的其他一些有用的方法 6.10.9 该类中重要的事件(Events) 6.11 Ext.util.TaskRunner 6.11.1 构造函数 6.11.2 启动一个线程start() 6.11.3 停止一个线程stop() 6.11.4 停止所有的线程stopAll() 6.12 Ext.util.TextMetrics得到块状化文本规格 6.12.1 块的绑定 6.12.2 实例化对象 6.12.3 获取文本的高度 6.12.4 获取文本的宽、高 6.12.5 获取文本的宽度 6.12.6 获取指定节点内文本块的宽、高 6.12.7 指定文本块的宽 6.13 Ext.KeyNav为元素提供简单的按键处理方法 6.13.1 实例化一个键盘绑定对象 6.13.2 废弃原有键盘绑定 6.13.3 将废弃的键盘绑定重新生效 6.14 Ext.KeyMap提供更灵活强大的对按键的处理方法 6.14.1 构造函数 6.14.2 给对象添加键盘绑定 6.14.3 废弃已绑定到KeyMap的配置 6.14.4 将KeyMap或废弃的配置重新生效 6.14.5 获取当前KeyMap配置是否为有效 6.14.6 事件绑定函数 6.15 本章小结 第7章 让ExtJS开始响应事件 第8章 常见Web框架的ExtJS改造 第9章 ExtJS对Ajax的支持 第10章 增强型模板 第11章 数据模型 第12章 Grid组件 第13章 Tree组件 第14章 ExtJS与服务端框架的整合 第15章 主题 第16章 Ext.Direct 第17章 Draw图形 第18章 Chart图表 附录A

Ext Js权威指南(.zip.001

Ext Js权威指南(.zip.001

Ex4.0共2个压缩包特性,《ext js权威指南》 前 言 第1章 ext js 4开发入门 / 1 1.1 学习ext js必需的基础知识 / 1 1.2 json概述 / 3 1.2.1 认识json / 3 1.2.2 json的结构 / 3 1.2.3 json的例子 / 4 1.2.4 在javascript中使用json / 4 1.2.5 在.net中使用json / 8 1.2.6 在java中使用json / 12 1.2.7 更多有关json的信息 / 15 1.3 ext js 4概述 / 15 1.4 ext js的开发工具的获取、安装与配置介绍 / 18 1.4.1 ext designer / 18 1.4.2 在visual studio中实现智能提示 / 23 1.4.3 spket / 28 1.4.4 在eclipse中实现智能提示 / 32 1.5 如何获得帮助 / 32 1.6 本章小结 / 33 .第2章 从“hello world”开始 / 34 2.1 获取ext js 4 / 34 2.2 配置使用ext js库 / 35 2.3 编写“hello world”程序 / 37 2.4 关于ext.onready / 38 2.5 关于ext.blank_image_url / 40 2.6 关于字体 / 42 2.7 ext js 4语法 / 42 2.8 本地化 / 60 2.9 为本书示例准备一个模板 / 60 2.10 本章小结 / 61 第3章 调试工具及技巧 / 62 3.1 使用firebug进行调试 / 62 3.2 在ie中调试 / 76 3.2.1 使用debugbar和companion.js调试 / 76 3.2.2 使用ietester测试 / 80 3.2.3 在ie 8或ie 9中调试 / 83 3.3 在chrome中调试 / 84 3.4 调试工具的总结 / 84 3.5 调试技巧 / 85 3.6 本章小结 / 89 第4章 ext js的基础架构 / 90 4.1 ext js框架的命名空间:ext / 90 4.1.1 概述 / 90 4.1.2 apply和applyif方法 / 90 4.1.3 不推荐的extend方法 / 92 4.1.4 数据及其类型检测 / 95 4.1.5 其他的基础方法 / 99 4.2 为框架顺利运行提供支持 / 107 4.2.1 平台检测工具:ext.is / 107 4.2.2 当前运行环境检测工具:ext.supports / 109 4.3 ext js的静态方法 / 112 4.3.1 概述 / 112 4.3.2 ext.object中的静态方法 / 113 4.3.3 ext.function中的静态方法 / 120 4.3.4 ext.array中的静态方法 / 127 4.3.5 ext.error中的静态方法 / 133 4.4 深入了解类的创建及管理 / 135 4.4.1 开始创建类 / 135 4.4.2 创建类的类:ext.class / 137 4.4.3 所有继承类的基类:ext.base / 151 4.4.4 实现动态加载:ext.loader / 151 4.4.5 管理类的类:ext.classmanager / 159 4.4.6 类创建的总结 / 161 4.5 动态加载的路径设置 / 163 4.6 综合实例:页面计算器 / 165 4.7 本章小结 / 169 第5章 ext js的事件及其应用 / 170 5.1 概述 / 170 5.2 浏览器事件 / 170 5.2.1 绑定浏览器事件的过程:ext.eventmanager / 170 5.2.2 封装浏览器事件:ext.eventobject / 179 5.2.3 移除浏览器事件 / 181 5.3 内部事件 / 184 5.3.1 内部事件对象:ext.util.event / 184 5.3.2 为组件添加事件接口:ext.util.observable / 188 5.3.3 为组件绑定事件 / 189 5.3.4 内部事件的触发过程 / 192 5.3.5 移除事件 / 194 5.4 特定功能的事件对象 / 196 5.4.1 延时任务:ext.util.delayedtask / 196 5.4.2 一般任务:ext.util.taskrunner与ext.taskmanager / 198 5.4.3 封装好的单击事件:ext.util.clickrepeater / 200 5.5 键盘事件 / 201 5.5.1 为元素绑定键盘事件:ext.util.keymap / 201 5.5.2 键盘导航:ext.util.keynav / 204 5.6 综合实例:股票数据的实时更新 / 205 5.7 本章小结 / 214 第6章 选择器与dom操作 / 215 6.1 ext js的选择器:ext.domquery / 215 6.1.1 选择器的作用 / 215 6.1.2 使用ext.query选择页面元素 / 215 6.1.3 基本选择符 / 223 6.1.4 属性选择符 / 229 6.1.5 css属性值选择符 / 234 6.1.6 伪类选择符 / 235 6.1.7 扩展选择器 / 248 6.1.8 ext.domquery的使用方法 / 249 6.1.9 ext js选择器的总结 / 252 6.2 获取单一元素:ext.dom.element / 252 6.2.1 从错误开始 / 252 6.2.2 使用ext.get获取元素 / 253 6.2.3 使用ext.fly获取元素 / 256 6.2.4 使用ext.getdom获取元素 / 257 6.2.5 获取元素的总结 / 258 6.3 元素生成器:ext.dom.helper / 258 6.3.1 概述 / 258 6.3.2 使用createhtml或markup方法生成html代码 / 258 6.3.3 使用createdom方法生成dom对象 / 261 6.3.4 使用createtemplate方法创建模板 / 263 6.3.5 helper对象的使用方法 / 263 6.4 元素的操作 / 273 6.5 获取元素集合:ext.compositeelementlite与ext.compositeelement / 277 6.5.1 使用ext.select获取元素集合 / 277 6.5.2 ext.dom.compositeelement与ext.dom.compositeelementlite的区别 / 279 6.5.3 操作元素集合 / 279 6.6 综合实例:可折叠的面板accordion / 280 6.7 本章小结 / 283 第7章 数据交互 / 284 7.1 数据交互基础 / 284 7.1.1 ajax概述 / 284 7.1.2 封装ajax:ext.data.connection与ext.ajax / 284 7.1.3 使用ajax / 291 7.1.4 跨域获取数据:ext.data.jsonp / 295 7.1.5 为element对象提供加载功能:ext.elementloader / 295 7.1.6 为组件提供加载功能:ext.componentloader / 296 7.2 代理 / 299 7.2.1 代理概述 / 299 7.2.2 基本的代理:ext.data.proxy.proxy / 300 7.2.3 进行批量操作:ext.data.batch与ext.data.operation / 303 7.2.4 服务器端代理:ext.data.proxy.server / 305 7.2.5 使用ajax处理数据的代理:ext.data.proxy.ajax与ext.data.proxy.rest / 308 7.2.6 跨域处理数据的代理:ext.data.proxy.jsonp / 312 7.2.7 为ext.direct服务的代理:ext.data.proxy.direct / 312 7.2.8 客户端代理:ext.data.proxy.client / 314 7.2.9 从变量中提取数据的代理:ext.data.proxy.memory / 314 7.2.10 使用浏览器存储的代理:ext.data.webstorageproxy、ext.data. sessionstorageproxy和ext.data.proxy.localstorage / 314 7.3 读取和格式化数据 / 315 7.3.1 概述 / 315 7.3.2 数据的转换过程:ext.data.reader.xml、ext.data.reader.json和ext.data.reader.array / 315 7.3.3 reader对象的配置项 / 321 7.3.4 格式化提交数据:ext.data.writer.writer、ext.data.writer.json和ext.data. writer.xml / 322 7.3.5 writer对象的配置项 / 325 7.4 数据模型 / 326 7.4.1 概述 / 326 7.4.2 数据类型及排序类型:ext.data.types与ext.data.sorttypes / 326 7.4.3 数据模型的骨架——字段:ext.data.field / 330 7.4.4 数据集:ext.util.abstractmixedcollection与ext.util.mixedcollection / 330 7.4.5 数据验证及错误处理:ext.data.validations与ext.data.errors / 332 7.4.6 模型的关系:ext.data.association、ext.data.hasmanyassociation和ext.data.belongstoassociation / 334 7.4.7 管理数据模型:ext.abstractmanager与ext.modelmanager / 336 7.4.8 定义数据模型:ext.data.model / 336 7.4.9 数据模型的定义过程 / 337 7.4.10 数据模型的创建 / 340 7.4.11 数据模型的配置项、属性和方法 / 343 7.5 store / 344 7.5.1 概述 / 344 7.5.2 store对象的实例化过程 / 345 7.5.3 treestore对象的实例化过程 / 348 7.5.4 ext.data.store加载数据的方法 / 350 7.5.5 ext.data.treestore加载数据的方法 / 354 7.5.6 store的配置项 / 358 7.5.7 store的分页 / 359 7.5.8 store的排序:ext.util.sorter与ext.util.sortable / 360 7.5.9 store的过滤:ext.util.filter / 363 7.5.10 store的分组:ext.util.grouper / 363 7.5.11 树节点:ext.data.nodeinterface与ext.data.tree / 364 7.5.12 store的方法 / 366 7.5.13 store的事件 / 368 7.5.14 store管理器:ext.data.storemanager / 369 7.6 综合实例 / 369 7.6.1 远程读取json数据 / 369 7.6.2 读取xml数据 / 378 7.6.3 store的数据操作 / 379 7.7 本章小结 / 384 第8章 模板与组件基础 / 385 8.1 模板 / 385 8.1.1 模板概述 / 385 8.1.2 ext.template的创建与编译 / 385 8.1.3 格式化输出数据:ext.string、ext.number、ext.date和ext.util.format / 389 8.1.4 超级模板:ext.xtemplate(包括ext.xtemplateparser和ext.xtemplatecompiler) / 393 8.1.5 模板的方法 / 396 8.2 组件的基础知识 / 396 8.2.1 概述 / 396 8.2.2 组件类的整体架构 / 397 8.2.3 布局类的整体架构 / 402 8.2.4 组件的创建流程 / 403 8.2.5 常用的组件配置项、属性、方法和事件 / 415 8.3 为组件添加功能 / 418 8.3.1 为元素添加阴影:ext.shadow与ext.shadowpool / 418 8.3.2 为组件提供阴影和shim功能:ext.layer / 419 8.3.3 让组件实现浮动功能:ext.util.floating / 420 8.3.4 记录组件状态:ext.state.stateful / 420 8.3.5 实现调整大小功能:ext.resizer.resizer与ext.resizer.resizetracker / 420 8.3.6 为组件提供拖动功能:ext.util.componentdragger / 421 8.3.7 为组件实现动画功能:ext.util.animate / 422 8.3.8 其他的组件辅助功能类 / 423 8.4 组件的管理 / 423 8.4.1 组件管理及查询:ext.componentmanager与ext.componentquery / 423 8.4.2 焦点管理:ext.focusmanager / 424 8.4.3 z-order管理:ext.zindexmanager与ext.windowmanager / 425 8.4.4 状态管理:ext.state.manager、ext.state.provider、ext.state.local-storageprovider和ext.state.cookieprovider / 426 8.5 综合实例 / 426 8.5.1 使用子模板 / 426 8.5.2 递归调用模板 / 428 8.6 本章小结 / 429 第9章 容器、面板、布局和视图 / 430 9.1 容器与布局的关系 / 430 9.2 容器 / 431 9.2.1 容器的创建过程:ext.container.abstractcontainer与ext.container.container / 431 9.2.2  ext.container.abstractcontainer和ext.container.container的配置项、属性、方法和事件 / 434 9.2.3 将body元素作为容器:ext.container.viewport / 435 9.3 面板 / 436 9.3.1 面板的结构 / 436 9.3.2 构件的放置:dockeditems / 438 9.3.3 面板标题栏构件:ext.panel.header与ext.panel.tool / 438 9.3.4 记录和恢复面板属性:ext.util.memento / 439 9.3.5 面板常用的配置项、方法和事件 / 439 9.4 布局 / 441 9.4.1 布局概述 / 441 9.4.2 布局的运行流程:ext.layout.layout / 441 9.4.3 容器类布局基类:ext.layout.container.container / 442 9.4.4 盒子布局、垂直布局与水平布局:ext.layout.container.box、ext.layout.container.vbox与ext.layout.container.hbox / 442 9.4.5 为盒子模型提供调整大小的功能:ext.resizer.splitter / 445 9.4.6 手风琴布局:ext.layout.container.accordion / 447 9.4.7 锚固布局:ext.layout.container.anchor / 448 9.4.8 绝对定位布局:ext.layout.container.absolute / 450 9.4.9 边框布局:ext.layout.container.border / 451 9.4.10 自动布局:ext.layout.container.auto / 453 9.4.11 表格布局:ext.layout.container.table / 454 9.4.12 列布局:ext.layout.container.column / 455 9.4.13 自适应布局:ext.layout.container.abstractfit与ext.layout.container.fit / 456 9.4.14 卡片布局:ext.layout.container.abstractcard与ext.layout.container.card / 456 9.5 标签面板 / 458 9.5.1 标签面板的构成及其运行流程:ext.tab.panel、ext.tab.bar与ext.tab.tab / 458 9.5.2 标签面板的配置项、属性、方法和事件 / 462 9.5.3 使用标签页 / 463 9.5.4 可重用的标签页 / 465 9.6 视图与选择模型 / 465 9.6.1 视图与选择模型概述 / 465 9.6.2 视图的运行流程:ext.view.abstractview与ext.view.view / 466 9.6.3 选择模型的工作流程 / 475 9.6.4 选择模型的配置项、属性、方法和事件 / 480 9.6.5 视图的配置项、属性、方法和事件 / 482 9.6.6 使用视图 / 484 9.7 页面布局设计 / 491 9.8 综合实例 / 492 9.8.1 布局设计实例:仿eclipse界面 / 492 9.8.2 在单页面应用中使用卡片布局实现“页面”切换 / 496 9.9 本章小结 / 498 第10章 重构后的grid / 500 10.1 grid的基类及其构成 / 500 10.1.1 概述 / 500 10.1.2 表格面板的运行流程:ext.panel.table / 500 10.1.3 表格视图的运行流程:ext.view.table与ext.view.tablechunker / 505 10.1.4 列标题容器的运行流程:ext.grid.header.container / 508 10.1.5 列标题的运行流程:ext.grid.column.column / 510 10.1.6 虚拟滚动条的工作原理:ext.grid.pagingscroller / 511 10.1.7 锁定列的运行流程:ext.grid.lockable与ext.grid.lockingview / 516 10.2 使用grid / 520 10.2.1 最简单的grid / 520 10.2.2 列的配置项 / 521 10.2.3 自定义单元格的显示格式 / 523 10.2.4 通过列对象定义单元格的显示格式 / 525 10.2.5 设置行的背景颜色 / 532 10.2.6 列标题的分组 / 533 10.2.7 使用锁定列 / 534 10.2.8 grid的配置项、属性、方法和事件 / 535 10.3 grid的附加功能 / 537 10.3.1 概述 / 537 10.3.2 附加功能基类:ext.grid.featrue.featrue / 537 10.3.3 为行添加附加信息:ext.grid.featrue.rowbody / 538 10.3.4 数据汇总功能:ext.grid.featrue.abstractsummary与ext.grid.featrue. summary / 539 10.3.5 分组功能:ext.grid.featrue.grouping / 543 10.3.6 分组汇总功能:ext.grid.featrue.groupingsummary / 545 10.4 可编辑的grid / 546 10.4.1 概述 / 546 10.4.2 grid实现可编辑功能的运行流程:ext.grid.plugin.editing / 547 10.4.3 单元格编辑的运行流程:ext.grid.plugin.cellediting、ext.grid.celleditor与ext.editor / 550 10.4.4 行编辑的运行流程:ext.grid.plugin.rowediting与ext.grid.roweditor / 556 10.4.5 在grid中使用单元格编辑模式 / 561 10.4.6 在grid中使用行编辑模式 / 562 10.4.7 grid编辑插件的配置项、属性、方法和事件 / 563 10.5 关于列表视图:listview / 564 10.6 属性grid / 564 10.6.1 概述 / 564 10.6.2 使用属性grid / 564 10.6.3 自定义编辑组件 / 565 10.6.4 propertygrid的配置项、属性、方法和事件 / 566 10.7 综合实例 / 567 10.7.1 使用不同选择模型的grid以及设置默认选择行 / 567 10.7.2 grid的本地排序和过滤 / 569 10.7.3 使用分页工具条(pagingtoolbar)实现远程分页、排序和过滤 / 570 10.7.4 使用分页滚动条(pagingscroller)实现远程分页、排序和过滤 / 574 10.7.5 使用cellediting实现数据的增删改 / 578 10.7.6 使用rowediting实现数据的增删改 / 587 10.7.7 主从表的显示 / 589 10.8 本章小结 / 595 第11章 与grid同源的树 / 597 11.1 树的构成 / 597 11.1.1 概述 / 597 11.1.2 树面板的运行流程:ext.tree.panel / 597 11.1.3 treestore的运行流程:ext.data.treestore / 600 11.1.4 treecolumn的运行流程:ext.tree.column / 602 11.1.5 视图的运行流程:ext.tree.view与ext.data.nodestore / 602 11.1.6 树的选择模型:ext.selection.treemodel / 603 11.2 树的使用 / 603 11.2.1 一个最简单的树 / 603 11.2.2 树节点的默认字段 / 603 11.2.3 为树节点添加附加字段 / 604 11.2.4 显示多列数据(treegrid效果) / 605 11.2.5 在树中使用复选框 / 605 11.2.6 树的配置项、属性、方法和事件 / 607 11.3 综合实例 / 608 11.3.1 树的远程加载 / 608 11.3.2 树的动态加载及节点维护 / 610 11.3.3 xml树及节点维护 / 617 11.3.4 使用树动态控制grid的显示 / 622 11.4 本章小结 / 625 第12章 表单 / 626 12.1 表单的构成及操作 / 626 12.1.1 表单面板的运行流程:ext.form.panel与ext.form.fieldancestor / 626 12.1.2 表单面板的配置项、属性、方法和事件 / 628 12.1.3 表单的管理:ext.form.basic / 629 12.1.4 basicform的配置项、属性、方法和事件 / 635 12.1.5 表单的操作:ext.form.action.action / 636 12.1.6 加载操作的运行流程:ext.form.action.load与ext.form.action.directload / 637 12.1.7 提交操作的运行流程:ext.form.action.submit、ext.form.action.directsubmit与ext.form.action.standardsubmit / 641 12.1.8 字段的构成 / 643 12.1.9 basefield的配置项、属性、方法和事件 / 643 12.1.10 常用的验证函数:ext.form.field.vtypes / 647 12.2 使用字段 / 647 12.3 使用trigger类字段 / 664 12.3.1 具有单击功能的字段:ext.form.field.trigger / 664 12.3.2 实现微调功能的spinner字段 / 665 12.3.3 使用numberfield字段 / 666 12.3.4 下拉选择类字段的基类:ext.form.field.picker / 667 12.3.5 使用datefield字段 / 667 12.3.6 使用timefield字段 / 669 12.4 使用combobox字段 / 669 12.4.1 概述 / 669 12.4.2 boundlist对象的运行流程 / 670 12.4.3 combobox字段的配置项、属性、方法和事件 / 671 12.4.4 最简单的combobox / 672 12.4.5 自定义列表显示格式的combobox / 673 12.4.6 动态调整combobox的列表数据 / 674 12.4.7 实现combobox的联动 / 676 12.4.8 使用combobox的查询功能 / 684 12.4.9 设置combobox的默认值 / 688 12.5 表单的验证和加载数据 / 690 12.5.1 表单的验证及错误显示方式 / 690 12.5.2 为表单加载数据 / 695 12.6 在表单中使用布局 / 701 12.6.1 分列显示表单的字段 / 701 12.6.2 使用fieldset作为列容器 / 703 12.6.3 使用两列布局加htmleditor的表单 / 704 12.6.4 在表单中使用标签页 / 705 12.7 综合实例:实现products表的管理功能 / 706 12.8 本章小结 / 715 第13章 窗口 / 716 13.1 窗口:ext.window.window. / 716 13.1.1 窗口的构成 / 716 13.1.2 窗口的配置项、属性、方法和事件 / 716 13.1.3 使用窗口 / 718 13.1.4 在窗口内使用布局 / 719 13.2 信息提示窗口:ext.window.messagebox / 720 13.2.1 概述 / 720 13.2.2 信息提示窗口的构成 / 720 13.2.3 使用信息提示窗口 / 722 13.2.4 信息提示窗口按钮的本地化 / 723 13.2.5 使用alert方法 / 724 13.2.6 使用confirm方法 / 724 13.2.7 使用progress方法 / 725 13.2.8 使用prompt方法 / 726 13.2.9 使用wait方法 / 727 13.2.10 使用信息提示窗口要注意的问题 / 727 13.3 综合实例:实现登录窗口 / 729 13.4 本章小结 / 733 第14章 按钮、菜单与工具条 / 734 14.1 按钮 / 734 14.1.1 按钮的构成:ext.button.button / 734 14.1.2 按钮的配置项、属性、方法和事件 / 734 14.1.3 使用按钮 / 736 14.1.4 带分割线的按钮:ext.button.split / 737 14.1.5 多状态按钮:ext.button.cycle / 737 14.1.6 按钮组:ext.container.buttongroup / 738 14.2 菜单及菜单项 / 739 14.2.1 ext js的菜单(menu对象)是什么 / 739 14.2.2 菜单管理器:ext.menu.manager / 740 14.2.3 菜单项:ext.menu.item / 740 14.2.4 可复选的菜单项:ext.menu.checkitem / 741 14.2.5 菜单分隔条:ext.menu.separator / 741 14.2.6 颜色选择器菜单:ext.menu.colorpicker / 742 14.2.7 日期选择菜单:ext.menu.datepicker / 742 14.2.8 使用菜单 / 742 14.3 工具栏及工具栏组件 / 743 14.3.1 工具栏:ext.toolbar.toolbar / 743 14.3.2 非交互式工具栏条目的基类:ext.toolbar.item / 743 14.3.3 文本项:ext.toolbar.textitem / 744 14.3.4 填充项:ext.toolbar.fill / 744 14.3.5 工具栏分隔条:ext.toolbar.separator / 744 14.3.6 空白项:ext.toolbar.spacer / 744 14.3.7 分页工具栏:ext.toolbar.paging / 744 14.3.8 使用工具栏 / 747 14.4 使用ext.action / 747 14.4.1 概述 / 747 14.4.2 action对象配置项和方法 / 748 14.4.3 使用示例 / 748 14.5 综合实例:在grid中使用右键菜单 / 750 14.6 本章小结 / 752 第15章 图形与图表 / 753 15.1 基础知识 / 753 15.1.1 svg简介 / 753 15.1.2 vml简介 / 754 15.2 图形介绍 / 755 15.2.1 概述 / 755 15.2.2 画布的工作流程:ext.draw.component / 755 15.2.3 图形引擎及接口:ext.draw.surface、ext.draw.engine.svg和ext.draw.engine.vml / 757 15.2.4 画笔:ext.draw.sprite / 760 15.2.5 图层:ext.draw.compositesprite / 760 15.2.6 调色板:ext.draw.color / 760 15.2.7 辅助对象:ext.draw.draw与ext.draw.matrix / 760 15.3 使用图形功能 / 760 15.3.1 简单的开始 / 760 15.3.2 drawcomponent对象的配置项、属性、方法和事件 / 761 15.3.3 surface对象的配置项、属性、方法和事件 / 761 15.3.4 drawsprite对象的配置项、属性、方法和事件 / 762 15.3.5 compositesprite对象的配置项、属性、方法和事件 / 763 15.3.6 使用基本图形 / 764 15.3.7 使用图片 / 765 15.3.8 使用路径 / 766 15.3.9 移动、旋转和缩放图形 / 767 15.3.10 使用渐变效果 / 770 15.3.11 使用图层 / 771 15.4 图表介绍 / 772 15.4.1 概述 / 772 15.4.2 图表的工作流程 / 773 15.5 使用图表 / 776 15.5.1 从一个简单例子开始 / 776 15.5.2 坐标轴的配置项 / 777 15.5.3 series对象的配置项、属性、方法和事件 / 779 15.5.4 折线图的配置项 / 780 15.5.5 显示多个折线图及使用图例 / 782 15.5.6 使用面积图 / 783 15.5.7 简单条形图(bar和column chart)及使用标签(label对象) / 785 15.5.8 堆积条形图 / 787 15.5.9 分组条形图 / 788 15.5.10 自定义条形颜色 / 789 15.5.11 使用散点图 / 789 15.5.12 使用饼图 / 791 15.5.13 自定义饼块颜色 / 792 15.5.14 使用表盘图 / 792 15.5.15 使用雷达图 / 795 15.5.16 使用时间轴 / 796 15.5.17 实现实时动态的图表 / 797 15.5.18 使用组合图 / 800 15.5.19 在图表中使用背景 / 801 15.5.20 在图表中自定义主题 / 803 15.6 本章小结 / 805 第16章 其他组件及实用功能 / 806 16.1 其他组件 / 806 16.2 使用滑块 / 812 16.3 使用提示信息 / 814 16.4 实用功能 / 822 16.5 本章小结 / 826 第17章 可简化通信的ext.direct / 827 17.1 准备工作 / 827 17.2 ext.direct的工作原理及构成 / 827 17.2.1 工作原理 / 827 17.2.2 ext.direct的构成 / 828 17.2.3 remotingprovider对象的具体工作流程 / 829 17.2.4 pollingprovider对象的具体工作流程 / 838 17.3 配置ext.direct的使用环境 / 839 17.3.1 概述 / 839 17.3.2 .net环境的配置 / 839 17.3.3 java环境的配置 / 842 17.4 使用ext.direct / 846 17.4.1 概述 / 846 17.4.2 使用directproxy及进行curd操作 / 846 17.4.3 使用ext.direct实现树的动态加载及节点维护 / 854 17.4.4 使用directload为表单加载数据 / 858 17.4.5 使用directsubmit提交表单及使用session / 863 17.4.6 使用ext.direct上传文件 / 866 17.4.7 使用pollingprovider对象 / 868 17.4.8 错误处理 / 871 17.5 本章小结 / 872 第18章 动画功能 / 873 18.1 动画功能的构成及工作流程 / 873 18.1.1 概述 / 873 18.1.2 动画功能的工作流程:ext.fx.anim / 874 18.1.3 分步动画的工作流程:ext.fx.animator / 877 18.2 使用动画 / 880 18.2.1 由最简单的动画开始 / 880 18.2.2 过渡效果使用的功能函数介绍 / 880 18.2.3 使用分步动画 / 882 18.2.4 注意的问题 / 883 18.3 在element对象中使用动画 / 883 18.4 本章小结 / 888 第19章 拖放功能 / 889 19.1 拖放功能的构成及工作流程 / 889 19.1.1 概述 / 889 19.1.2 dragdropmanager对象的工作流程 / 891 19.1.3 注册节点:ext.dd.registry / 893 19.1.4 一般拖动功能的工作流程:ext.dd.dd / 894 19.1.5 dragsource对象的工作流程 / 897 19.1.6 droptarget对象的工作流程 / 898 19.1.7 dragzone对象的工作流程 / 899 19.1.8 dropzone对象的工作流程 / 899 19.2 使用拖放功能 / 899 19.2.1 最简单的拖动效果 / 899 19.2.2 使用dragsource对象与droptarget对象 / 900 19.2.3 使用dragzone对象与dropzone对象(使用registry对象) / 902 19.2.4 使用dragzone对象与dropzone对象(不使用registry对象) / 903 19.2.5 通过拖动实现节点排序 / 904 19.2.6 使用gridviewdropzoneplugin插件 / 905 19.2.7 使用treeviewdragdropplugin插件 / 907 19.2.8 关于grid和tree拖动后的数据保存问题 / 910 19.3 本章小结 / 910 第20章 扩展与插件 / 911 20.1 扩展与插件的区别 / 911 20.2 扩展与插件如何选择 / 911 20.3 如何编写扩展 / 911 20.3.1 命名空间 / 911 20.3.2 定义扩展 / 912 20.3.3 定义别名 / 912 20.3.4 定义备用名 / 912 20.3.5 要求加载的类:requires与uses / 912 20.3.6 混入功能 / 913 20.3.7 构造函数与initcomponent方法 / 913 20.3.8 静态属性和方法与单件模式 / 913 20.3.9 可自动生成set和get方法的属性与initconfig方法 / 914 20.3.10 在扩展中常用的方法 / 914 20.3.11 编写扩展:treecombobox / 914 20.4 如何编写插件 / 920 20.4.1 概述 / 920 20.4.2 abstractplugin对象 / 921 20.4.3 插件的别名 / 921 20.4.4 编写插件:rowcolor / 922 20.5 扩展和插件介绍 / 923 20.5.1 概述 / 923 20.5.2 本地分页代理:ext.ux.data.pagingmemoryproxy / 923 20.5.3 标签滚动菜单:ext.ux.tabscrollermenu / 925 20.5.4 编辑器tinymce / 926 20.6 本章小结 / 928 第21章 主题开发 / 929 21.1 准备工作 / 929 21.1.1 安装ruby / 929 21.1.2 安装compass / 930 21.1.3 sass介绍 / 931 21.2 为ext js 4创建新主题 / 933 21.2.1 概述 / 933 21.2.2 目录结构 / 933 21.2.3 修改配置 / 933 21.2.4 编译 / 935 21.2.5 测试主题 / 935 21.3 通过ui配置项设置组件样式 / 937 21.4 本章小结 / 937 第22章 mvc应用架构 / 938 22.1 mvc应用架构的构成及工作流程 / 938 22.1.1 构成 / 938 22.1.2 控制器的工作流程:ext.app.controller / 938 22.1.3 application对象的工作流程 / 940 22.2 一步一步实现mvc框架 / 942 22.2.1 概述 / 942 22.2.2 创建目录 / 942 22.2.3 创建首页 / 942 22.2.4 创建启动脚本:app.js / 943 22.2.5 定义登录对话框 / 944 22.2.6 创建应用脚本:application.js / 948 22.2.7 创建viewport视图 / 949 22.2.8 菜单视图及控制器 / 950 22.2.9 实现订单管理 / 952 22.2.10 实现产品管理 / 958 22.2.11 示例效果 / 969 22.3 本章小结 / 970 附录 简写类名与ext js类名对照表 / 971

三相并网逆变器无功功率扰动+孤岛检测控制算法仿真【参考文献+仿真】

三相并网逆变器无功功率扰动+孤岛检测控制算法仿真【参考文献+仿真】

内容概要:本文系统介绍了一种基于无功功率扰动的三相并网逆变器孤岛检测控制算法,并配套提供了完整的Simulink仿真模型与相关参考文献。文章深入剖析了孤岛效应的形成机理及其对电网安全的危害,重点阐述了通过注入无功功率扰动实现孤岛检测的技术原理,包括控制策略设计、扰动信号的生成与注入方式、检测判据的设定等关键技术环节。所构建的仿真模型可有效验证该算法在多种工况下的检测灵敏度、响应速度及对并网电能质量的影响,兼顾检测性能与系统稳定性。此外,文档还整合了大量电力电子与新能源领域的高价值仿真资源,涵盖T型三电平逆变器、虚拟同步发电机(VSG)、模型预测控制(MPC)、中点电位平衡、LCL滤波器设计、低电压穿越(LVRT)等多个前沿技术方向,具有较强的扩展性和科研参考价值。; 适合人群:电气工程、自动化、新能源科学与工程等相关专业的硕士博士研究生、高校科研人员,以及从事光伏逆变器、微电网保护与控制、电力系统仿真的工程技术人员。; 使用场景及目标:①深入理解并掌握基于无功功率扰动的孤岛检测方法原理与实现路径;②搭建并调试三相并网逆变器孤岛检测系统的Simulink仿真平台;③支撑高水平学术论文撰写、科研项目申报、课程设计或实际工程方案验证中的模型复现与算法优化; 阅读建议:建议结合文末提供的参考文献深化理论认知,利用Simulink对仿真模型进行参数扫描与典型工况测试(如负载匹配、非计划孤岛等),重点关注扰动强度与检测盲区的关系,以全面把握算法的适用边界与工程折衷设计要点。

三相四桥臂电压不对称跌落补偿动态电压恢复器DVR(Simulink仿真实现)

三相四桥臂电压不对称跌落补偿动态电压恢复器DVR(Simulink仿真实现)

内容概要:本文聚焦于三相四桥臂动态电压恢复器(DVR)在不对称电压跌落工况下的补偿能力研究,基于Simulink平台构建了完整的系统仿真模型。重点解决了不平衡电压跌落的快速检测与高精度补偿控制问题,采用多准比例谐振(多准PR)控制器实现三相四桥臂逆变器在不平衡负载条件下的稳定运行与优质输出波形。系统具备优异的动态响应特性与稳态控制精度,能够有效提升敏感负载侧的电能质量。文档配套提供了详尽的参考文献、技术说明文档与可复现的仿真模型,支持算法验证与进一步科研拓展,还可结合RIME等智能优化算法对控制器参数进行优化设计。; 适合人群:电气工程、自动化、电力电子与电能质量治理等方向的研究生、科研人员及从事相关领域的工程技术人员。; 使用场景及目标:①深入研究动态电压恢复器在不对称电压跌落下的补偿策略与控制机理;②掌握三相四桥臂逆变器的拓扑结构、数学建模与先进控制方法;③实现多准PR控制器的设计、仿真与参数整定,提升系统在复杂工况下的稳定性与控制性能;④结合智能优化算法(如RIME、PSO等)开展控制器参数优化研究,推动高性能电能质量治理装置的研发。; 阅读建议:建议结合Simulink仿真模型与提供的参考文献进行系统学习,重点关注电压跌落检测算法、多准PR控制器设计及参数调节过程,可在此基础上引入新型优化算法进一步提升系统动态与稳态性能。

MATLAB实现及实验数据,用于灵活工坊排班的多目标徒步优化。.zip

MATLAB实现及实验数据,用于灵活工坊排班的多目标徒步优化。.zip

1.版本:matlab2014a/2019b/2024b 2.附赠案例数据可直接运行。 3.代码特点:参数化编程、参数可方便更改、代码编程思路清晰、注释明细。 4.适用对象:计算机,电子信息工程、数学等专业的大学生课程设计、期末大作业和毕业设计。

YOLO26算法室内实验室藻类目标检测+训练好的模型+459张数据集+pyqt可视化界面.zip

YOLO26算法室内实验室藻类目标检测+训练好的模型+459张数据集+pyqt可视化界面.zip

附训练好的 YOLO 权重与 PyQt 可视化检测界面,页面底部含可视化效果预览,毕设/课设开箱即用。 【数据集概况】 · 检测类别(中文):[藻类(Algae), 其他(Coral)] · 训练集:328 张 · 验证集:87 张 · 测试集:44 张 · 总计:459 张 该数据集专注于室内实验室场景,针对藻类目标进行精确检测,为科学研究和自动化监测提供了关键数据支持,具有显著的应用价值。数据集包含训练集328张、验证集87张和测试集44张,分布均衡,充分保障了模型训练的多样性和评估的可靠性。标注质量高,所有目标均经过严格审核,边界框精准,标注规范一致,确保了数据的高质量和可用性。该数据集可应用于科研实验室、环境监测及自动化检测系统开发,为相关行业提供高效、准确的解... 【训练曲线与评估图】 【模型训练配置】 参数 | 值 模型 | yolo26n 训练轮数 | 100 epochs 输入尺寸 | 640x640 批次大小 | 24 优化器 | auto 初始学习率 | 0.01 训练设备 【关键指标汇总】 训练了 43 个 epoch,最终轮指标: 指标 | 数值 mAP50 | **0.9950** mAP50-95 | 0.9796 Precision | 0.9961 Recall | 1.0000 train/box_loss | 0.3191 train/cls_loss | 0.3595 val/box_loss | 0.2880 val/cls_loss | 1.1720 【训练过程分析】 43 轮训练后,mAP50 达到 0.9950,这个成绩足以证明 yolo26n 在室内实验室环境下针对藻类目标检测上有着非常出色的表现。训练过程中的 loss 曲线显示,前半程训练中 loss ... 使用场景:毕业设计、课程设计、深度学习入门、工业场景落地验证。

特权访问管理策略ISO∕IEC 27001全套文件.pdf

特权访问管理策略ISO∕IEC 27001全套文件.pdf

特权访问管理策略ISO∕IEC 27001全套文件.pdf

thinkrail(TypeScript)

thinkrail(TypeScript)

「thinkrail(TypeScript)」是开源项目(TypeScript)。项目简介:Vibe code with pi in a lightweight, real IDE that customises itself around the way you work — The Vibe You Need源码完整,下载解压即可查看使用,适合学习参考、课程设计与二次开发。

基于数据驱动的 Koopman 算子的递归神经网络模型线性化,用于纳米定位系统的预测控制研究(Matlab代码实现)

基于数据驱动的 Koopman 算子的递归神经网络模型线性化,用于纳米定位系统的预测控制研究(Matlab代码实现)

内容概要:本文提出了一种结合数据驱动的Koopman算子与递归神经网络(RNN)的模型线性化方法,旨在解决纳米定位系统中非线性动态建模困难、控制精度不足的问题。通过Koopman算子将复杂的非线性系统映射至高维线性空间,利用RNN对系统动态进行高效学习与预测,进而实现对纳米级定位平台的高精度建模与模型预测控制(MPC)。该方法不仅提升了系统的响应速度与稳定性,还增强了对外部扰动和非线性特性的适应能力,特别适用于需要亚微米乃至纳米级运动控制的精密工程场景。文中提供了完整的Matlab代码实现,便于读者复现实验并进一步优化算法。; 适合人群:具备控制理论基础与Matlab编程能力,从事精密控制、智能控制算法、机电一体化或先进制造系统研发的研究生、科研人员及工程技术人员。; 使用场景及目标:①应用于纳米定位平台、微纳操作机器人、半导体制造设备等高精度运动控制系统中,实现超高分辨率的位置跟踪与轨迹控制;②为非线性动力系统的数据驱动建模提供一种可扩展的线性化范式,支持模型预测控制、自适应控制等先进控制策略的设计与验证;③推动深度学习与现代控制理论的深度融合,探索智能控制在超精密工程中的前沿应用。; 阅读建议:建议读者结合所提供的Matlab代码,深入理解Koopman观测函数的设计、延迟坐标构造、RNN训练流程及MPC控制器集成等关键技术环节,重点掌握数据预处理、模型降维与在线预测的协同机制,并通过仿真实验对比传统方法,全面评估控制性能提升效果。

基于三电平ANPC-VSG(虚拟同步发电机)构网型逆变器控制+双闭环+中点电位平衡控制【参考文献+仿真】

基于三电平ANPC-VSG(虚拟同步发电机)构网型逆变器控制+双闭环+中点电位平衡控制【参考文献+仿真】

内容概要:本文系统研究了基于三电平ANPC拓扑结构的构网型逆变器控制技术,重点围绕虚拟同步发电机(VSG)控制策略展开,旨在赋予逆变器类似传统同步发电机的惯性与阻尼特性,从而提升其在弱电网及孤岛运行模式下的稳定性与动态响应能力。研究深入构建了包含电压外环与电流内环的双闭环控制系统,实现了对输出电压幅值、频率及电流的精确、快速调节。针对三电平逆变器普遍存在的中点电位不平衡问题,文中设计并整合了高效的中点电位平衡控制算法,有效抑制了中点电压的漂移与波动,保障了系统运行的安全性与可靠性。整个控制策略在Simulink仿真平台上完成了建模与验证,提供了完整的仿真模型与理论分析,并辅以参考文献支持,确保了研究的完整性与可复现性。; 适合人群:具备电力电子技术、自动控制理论及新能源发电系统基础知识,从事相关领域科研工作的研究生、高校教师以及电力电子与电力系统行业的研发工程师和技术人员。; 使用场景及目标:①深入掌握三电平ANPC逆变器在构网型应用中的核心控制原理与实现方法;②为虚拟同步发电机(VSG)技术、双闭环控制设计及中点电位平衡策略的仿真与实验提供直接的方案参考和技术支持;③服务于新能源并网、微电网控制、储能系统集成等领域的课题研究、学位论文撰写及工程项目开发。; 阅读建议:建议读者结合文中提供的Simulink仿真模型进行同步学习与实践操作,重点关注VSG控制参数(如虚拟惯量、阻尼系数)与双闭环控制器参数的整定过程,通过改变负载、电网等工况进行仿真实验,深入分析各项控制策略对系统动态性能和稳态精度的影响,以达到融合理论与实践的深度理解。

克服RIS优化中的相位不连续问题”的数据集Matlab脚本.rar

克服RIS优化中的相位不连续问题”的数据集Matlab脚本.rar

克服RIS优化中的相位不连续问题”的数据集Matlab脚本.rar

国央企创新负责人如何利用平台构建专属的创新资源协同体系?.docx

国央企创新负责人如何利用平台构建专属的创新资源协同体系?.docx

科易网基于AI模型+行业大数据,在技术转移、成果转化、技术经纪、知识产权、产业创新、科技招商等垂直领域的多样化应用场景,推出科技创新领域的AI+工具与数智化解决方案,推动科技创新与产业创新智能化发展。

T型三电平SVPWM并网逆变器simulink仿真

T型三电平SVPWM并网逆变器simulink仿真

内容概要:本文详细介绍了基于T型三电平SVPWM并网逆变器的Simulink仿真模型,系统阐述了其在并网系统中的关键技术实现,涵盖空间矢量脉宽调制(SVPWM)、中点电位平衡控制、低电压穿越(LVRT)能力以及改进电流环控制等核心功能。该仿真模型深入剖析了T型三电平逆变器的工作原理与多层级控制策略,重点突出其在高效率、低谐波输出方面的优势,适用于研究高性能并网逆变系统的设计与优化。文中还拓展探讨了模型预测控制(MPC)、不平衡电网条件下的控制策略等前沿方向,体现出较强的科研深度与工程应用价值。; 适合人群:电力电子、新能源发电、自动化等相关专业的研究生、科研人员及从事逆变器设计与控制的工程技术人员。; 使用场景及目标:①用于高校及科研机构开展三电平逆变器及其并网控制策略的教学与研究;②为工业界提供高性能并网逆变器的仿真验证平台,支持中点电位控制、谐波抑制、故障穿越等功能开发与优化;③支撑电力系统中关于新能源接入、电能质量提升等方面的技术攻关。; 阅读建议:建议读者结合Simulink仿真环境,对照文档中的控制框图与参数设置逐步复现模型,重点关注SVPWM调制算法与中点电位控制模块的实现细节,并可通过修改负载条件或电网故障场景进行动态性能测试,以深入掌握系统响应特性与控制逻辑。

数字人源码系统部署资源

数字人源码系统部署资源

数字人源码系统部署资源 套系统源码 = 带后台、直播、克隆、SaaS、前端 H5 / 小程序,开箱二开

Web 前端 + HTML/CSS/JS+localStorage + 叮当电影购票网站 + 前端实战项目

Web 前端 + HTML/CSS/JS+localStorage + 叮当电影购票网站 + 前端实战项目

叮当电影购票网站 | 前端项目 技术栈:HTML、CSS、原生 JavaScript、LocalStorage 项目描述:独立开发静态电影购票网站,一共 5 个页面(首页、影片购票页、选座下单页、个人订单页、登录注册页),全站统一导航与页脚。首页实现海报自动轮播、热映 / 待映影片展示、票房榜单;购票页展示影片详情、演员信息、影院场次;选座模块支持座位选择、手机号 + 验证码校验;利用 LocalStorage 持久化保存订单,个人中心可查看、删除历史订单,完整复现线上购票流程,掌握页面跳转、DOM 操作、本地存储等前端基础能力。

在扭矩约束下,针对二自由度机器人机械臂的轨迹规划、逆动力学以及时间最优轨迹优化的MATLAB实现.rar

在扭矩约束下,针对二自由度机器人机械臂的轨迹规划、逆动力学以及时间最优轨迹优化的MATLAB实现.rar

在扭矩约束下,针对二自由度机器人机械臂的轨迹规划、逆动力学以及时间最优轨迹优化的MATLAB实现.rar

最新推荐最新推荐

recommend-type

粒子群优化BP-PID、传统PID控制、神经网络BP-PID三种算法效果仿真对比

内容概要:本文系统性地对比了粒子群优化BP-PID、传统PID控制以及神经网络BP-PID三种控制算法在多种复杂系统中的仿真性能,依托MATLAB/Simulink平台,重点分析各算法在动态响应速度、稳定性、抗干扰能力及控制精度方面的差异。研究涵盖典型非线性、强耦合系统如倒立摆、电力系统、三电平逆变器、微电网等,并扩展至LQR、模糊PID、虚拟同步发电机(VSG)、下垂控制、模型预测控制(MPC)、孤岛检测、中点电位平衡、虚拟阻抗等多种先进控制策略。配套提供完整的仿真模型、参考文献、程序代码与说明文档,构建了一个面向科研实践的技术支持体系。; 适合人群:自动化、电气工程、控制科学与工程等领域具备一定MATLAB/Simulink基础的研究生、科研人员及从事控制系统开发的工程师;; 使用场景及目标:① 深入理解并对比不同PID控制算法在复杂系统中的适用性与性能边界;② 快速搭建高保真仿真环境,验证新控制算法的有效性与鲁棒性;③ 支撑学术论文撰写、科研项目攻关与工程原型开发;; 阅读建议:建议按照资源目录顺序循序渐进学习,结合百度网盘提供的完整资源包(含仿真模型、代码、文献)进行实操演练,重点关注算法实现逻辑、参数整定方法与仿真结果分析,以提升科研创新能力与工程实践水平。
recommend-type

基于小波分析的小电流接地系统单相接地故障选线仿真【仿真+说明文档+说明PPT】

内容概要:本文介绍了一个基于小波分析的小电流接地系统单相接地故障选线仿真项目,配套提供Simulink仿真模型、详细说明文档及讲解PPT,系统阐述了小电流接地系统在发生单相接地故障时的故障特征提取与选线判别方法。项目核心在于利用小波变换对暂态零序电流进行多尺度分解,有效捕捉故障初始时刻的高频突变分量,结合幅值比较、极性判别等判据实现故障线路的精准识别。仿真平台完整构建了从故障信号采集、小波分解与重构、特征量提取到选线决策的全流程,充分验证了小波分析在微弱故障信号处理中的优越性,兼具理论深度与工程应用价值。; 适合人群:电气工程及其自动化、智能电网等相关专业的本科生、研究生,以及从事配电网继电保护、故障诊断算法研究的科研人员和现场工程技术人员。; 使用场景及目标:①深入掌握小波分析在电力系统暂态信号处理中的具体应用技巧;②理解小电流接地系统单相接地故障的物理特性与现有选线方法的实现逻辑;③通过动手仿真验证不同小波基、分解层数等参数对选线结果的影响,支持学术论文写作、科研课题验证及高校课程设计与实验教学。; 阅读建议:建议结合Simulink模型与说明文档同步学习,重点关注小波变换模块的参数配置、故障特征提取的时序逻辑以及最终选线判据的数学表达,可在基础模型上进一步加入高阻接地、噪声干扰、多回路并行等复杂工况以提升算法鲁棒性研究深度。
recommend-type

产业园区运营负责人如何利用平台实现创新资源的精准配置?.docx

科易网基于AI模型+行业大数据,在技术转移、成果转化、技术经纪、知识产权、产业创新、科技招商等垂直领域的多样化应用场景,推出科技创新领域的AI+工具与数智化解决方案,推动科技创新与产业创新智能化发展。
recommend-type

特权访问管理策略ISO∕IEC 27001全套文件.pdf

特权访问管理策略ISO∕IEC 27001全套文件.pdf
recommend-type

德瓦达达娃空对空达瓦达瓦

德瓦达达娃空对空达瓦达瓦
recommend-type

Go语言高并发云原生数据库实战:覆盖时序、图、文档、关系型及区块链数据库

数据库系列课程中“Go语言高并发与云原生项目实战资源”这一标题,实质上指向当前企业级数据基础设施演进的核心交汇点:以Go语言为开发底座,深度融合高并发处理能力、云原生架构范式与多模态数据库技术体系的工程化实践路径。其描述中“New SQL OLAP”并非泛指传统OLAP(联机分析处理)系统,而是特指新一代基于SQL接口、面向实时/近实时分析场景、具备弹性伸缩、存算分离、多租户隔离、流批一体能力的现代化分析型数据库范式——它既继承了SQL易用性、标准兼容性与成熟生态优势,又突破了传统MPP架构在动态扩缩容、混合负载支持、低延迟响应(亚秒级)、高吞吐写入(百万TPS级)及云环境适配性等方面的固有瓶颈。该范式典型代表包括ClickHouse(列式存储+向量化执行+异步复制)、Doris(MySQL协议兼容+物化视图+Rollup预聚合)、StarRocks(全新C++内核+智能物化视图+统一实时分析)、Trino(联邦查询引擎+插件化连接器+无状态协调节点)以及由Go语言主导构建的新兴系统如QuestDB(专为时序优化的SQL OLAP,支持毫秒级时间分区、内存映射IO、SIMD加速)、Materialize(基于Timely Dataflow实现的增量物化视图引擎,支持SQL流式持续查询)等。 从压缩包内子文件名列表可深度解构其知识体系全景:首先,“时序数据库”模块聚焦IoT、监控、金融行情等高频写入、按时间窗口聚合、降采样、异常检测等典型场景,涵盖InfluxDB(TSM引擎+Flux查询语言)、Prometheus(本地TSDB+Pull模型+Recording Rules)、TDengine(单机亿级写入+超级表建模+内置计算函数)及QuestDB(Go+Rust混合编写,支持SQL JOIN时序对齐、LIVE QUERY实时订阅)等,强调时间戳主键设计、倒排索引优化、无锁写入队列、LSM-Tree与Delta Encoding压缩策略;“关系型数据库”部分不仅覆盖MySQL(InnoDB事务隔离级别实现、Buffer Pool管理、Redo/Undo日志机制、主从GTID复制)、PostgreSQL(MVCC快照原理、WAL日志归档、逻辑复制、扩展PL/pgSQL与FDW外部数据包装器),更深入探讨其在云原生下的演进形态——如Citus(PG分布式扩展)、CockroachDB(Spanner-inspired强一致分布式SQL,Raft共识+Multi-Raft Group分片)、YugabyteDB(DocDB存储层+YSQL兼容层,支持自动分片与跨区域复制);“文档型数据库”解析MongoDB(WiredTiger引擎的LSM+Copy-on-Write、Change Streams实时监听、Aggregation Pipeline阶段优化)、Elasticsearch(倒排索引+Doc Values列存+Query DSL语法树编译、Hot-Warm-Cold冷热分层架构)及其与Go生态集成(mongo-go-driver异步操作、elastic/v7客户端批量写入优化);“图数据库”涵盖Neo4j(Cypher查询语言+原生存储+图算法库)、Nebula Graph(Shared-Nothing架构+Storage-Compute分离+gQL查询语言)、Dgraph(Raft分片+GraphQL+-like查询+增量同步),重点剖析属性图模型、Gremlin/Cypher图遍历算法复杂度、索引组织(如Label Index、Property Index、Composite Index)及Go客户端驱动的连接池管理与事务控制;“数据仓库与大数据”模块横跨Lambda/Kappa架构对比、Iceberg/Hudi/Delta Lake三大开源表格式(ACID事务保证、Schema演化、Time Travel、隐藏分区、Z-Order聚类)、Flink SQL实时ETL、Spark SQL离线数仓构建,并强调Go语言在数据管道编排(如通过Airflow Go SDK或自研轻量调度器)、元数据服务(Atlas Go Client)、数据质量校验(custom Go validator集成Great Expectations)中的独特价值;“区块链”子项并非孤立技术,而是作为可信数据源接入层,解析Hyperledger Fabric(Channel隔离+Chaincode链码+Private Data Collection)、Ethereum(Solidity合约+Web3.go SDK交互+事件日志解析)如何与OLAP系统联动,实现链上数据可信导入、溯源分析与合规审计;“图数据库”与“区块链”的并列暗示了知识图谱与链上地址关系挖掘、反洗钱图谱构建等交叉应用场景。 整个课程体系以Go语言为贯穿主线:利用其goroutine轻量级协程与channel通信机制实现高并发数据采集Agent(如Kafka Consumer Group自动再平衡、Prometheus Exporter指标暴露);借助net/http与fasthttp构建低延迟API网关,对接多数据库后端并实现熔断限流(go-zero微服务框架集成Sentinel);运用Go Module依赖管理与CGO调用C/C++高性能库(如ClickHouse C++ client、OpenSSL加密);结合Docker+Kubernetes Operator模式封装数据库StatefulSet部署(如etcd-operator、postgres-operator),实现自动化备份恢复(Velero+Restic)、配置热更新(Consul KV+watch)、健康探针定制(livenessProbe执行SQL心跳检测)。尤为关键的是,课程将“云原生”具象为可观测性(OpenTelemetry Go SDK埋点+Jaeger链路追踪+Prometheus指标采集)、声明式API(CRD定义数据库实例规格)、服务网格集成(Istio mTLS加密数据库连接)、GitOps交付(Argo CD同步Helm Chart部署Doris集群)等可落地实践。最终,所有技术模块均服务于构建一个具备毫秒级实时分析、PB级数据规模、跨地域高可用、多源异构数据联邦、安全合规审计能力的新一代SQL OLAP平台——这不仅是技术选型的集合,更是面向未来十年数据密集型应用的系统性工程方法论。
recommend-type

OpenStock:中小企业可用的开源库存管理系统

## 1. OpenStock 是什么:一个面向中小企业的开源库存管理系统,不是玩具项目 OpenStock 这个名字乍一听像某个云服务的子产品,但实际它是一个完全面向真实业务场景打磨出来的开源库存管理平台。我第一次在 GitHub 上看到它时,第一反应是“又一个 React + MongoDB 的练手项目”,点开 README 后才意识到——这东西真能用,而且已经在三家本地五金店、两家烘焙工坊和一家小型医疗器械经销商那里跑了一年多。它不追求炫酷的 3D 仓库可视化,也不堆砌微服务架构,核心就干一件事:让老板、仓管员、采购员三类角色,在同一套数据底座上,用最顺手的方式完成“入库→上架→出库→
recommend-type

深度学习里常听说的‘内积层’到底指什么?它和全连接层是什么关系?

### 关于内积层的理解 在深度学习领域,并不存在名为“内积层”的标准术语。然而,在某些情况下,“内积”这一概念可能被提及来描述特定类型的运算或者变换过程。 #### 内积的概念解释 内积是指两个相同维度向量之间的乘积累加操作,即对应位置元素相乘后再求和的结果。这种计算方式广泛应用于各种机器学习算法之中[^1]。当提到“内积层”,可能是指涉及此类运算的一个抽象层次或者是对某一具体实现方法的形象称呼。 #### 类似功能的层——全连接层 实际上,在卷积神经网络架构里承担类似角色的是全连接层(Fully Connected Layer),该层负责接收来自前面各层提取到的空间局部特征并将其
recommend-type

MATLAB 2019实现多波形同坐标绘图及示波器数据导出至Excel和Origin

在MATLAB中实现“多波形同坐标”绘制,是信号处理、控制系统仿真、通信系统建模、电力电子分析以及各类工程科研实验数据可视化中的核心技能之一。该技术的本质在于:将多个具有相同横轴物理意义(如时间、频率、采样点索引等)但不同纵轴响应特征(如电压、电流、相位、幅值、误差、状态变量等)的波形信号,在同一组坐标系(即同一个axes对象)中叠加显示,从而实现直观对比、趋势分析、时序对齐、误差评估与动态演化观察等关键科学目的。其重要性远超简单的绘图操作,而是一种融合了数据采集逻辑、内存管理策略、图形句柄控制、色彩语义设计、图例标注规范及跨平台数据互通能力的系统性工程实践。 首先,从数据来源维度看,“多波形”的生成途径高度多样化:既可来自Simulink模型中多个Scope模块的实时仿真输出,也可源于MATLAB脚本中通过算法生成的多组理论波形(如正弦+方波+锯齿波混合信号),还可导入外部测量设备(如示波器、DAQ卡、网络分析仪)采集的实测数据(.csv/.mat/.tdms格式)。尤其在Simulink环境中,新版MATLAB(R2019a及以后)对Scope模块进行了深度重构——引入了“Logging to Workspace”机制,取代了旧版中依赖To Workspace模块或手动右键导出的低效方式。用户只需在Scope界面点击齿轮图标→进入Configuration Properties→勾选“Log data to workspace”,并指定变量名(如waveData)、保存格式(推荐Array或Timeseries)及采样率/缓冲区大小,即可在仿真结束后自动将全部通道数据以结构化数组形式载入Base Workspace。此过程确保了时间轴严格同步、采样点一一对应,为后续多波形精准叠加奠定数据一致性基础。 其次,在绘图实现层面,“同坐标”并非简单调用多次plot命令即可达成。必须深入理解MATLAB图形系统的底层架构:每个figure包含一个或多个axes容器,而每个axes可容纳任意数量的line对象。标准做法是使用hold on指令锁定当前axes,再依次plot多组x-y数据;更优方案则是采用向量化语法——如plot(x1,y1,x2,y2,x3,y3,...),MATLAB会自动为每条曲线分配不同颜色与线型,并共享同一坐标轴范围。针对不同量纲波形(如电压V与温度℃),需启用yyaxis left/right双Y轴;若需多X轴(如时间与频率映射),则需借助twinx或自定义坐标变换。此外,必须配套执行xlabel、ylabel、title、legend、grid on、box on等指令完善图表语义,其中legend应明确标注各波形物理含义(如'PWM驱动信号'、'电机转速反馈'、'PID输出误差'),避免歧义。对于高频采样大数据(如100万点),应启用plot(...,'-','Marker','none')禁用标记点以提升渲染效率,并考虑使用xlim/ylim限定视图区域防止坐标轴过度拉伸。 再者,跨软件协同是该技术落地的关键延伸。描述中提及导出至Excel与Origin,这要求掌握MATLAB的数据导出范式:对已加载的waveData数组,可用writematrix(waveData,'output.xlsx')直接写入表格,或用xlswrite(旧版)、writematrix+writematrix组合导出多列;对于Origin,则推荐生成符合其支持格式的.dat文件(空格/制表符分隔),或通过COM接口调用OriginLab自动化引擎实现无缝对接。值得注意的是,导出前务必验证数据维度——Array格式默认为M×N矩阵,第1列为时间轴,其余列为各通道波形;若为Structure格式,则需先提取waveData.time与waveData.signals.values字段重组为二维数组,否则易导致坐标错位。 最后,工程实践中需规避若干典型陷阱:一是未清空工作区导致变量名冲突;二是忽略采样率不一致引发的时间轴偏移(如两路信号采样率分别为1kHz与10kHz,须先重采样对齐);三是legend顺序与plot调用顺序不匹配造成标签错位;四是未设置FontSize、LineWidth等属性致使论文插图不符合出版规范(IEEE/Elsevier通常要求字号≥8pt,线宽≥1.5pt)。综上,“matlab多波形同坐标”绝非孤立命令技巧,而是贯通建模仿真、数据采集、图形编程、结果验证与学术表达的全链条能力,其掌握程度直接反映工程师在复杂系统分析中的专业深度与工程严谨性。
recommend-type

OpenStock:开源A股行情数据抓取与自动化选股策略工具

如果你盯盘一天只能看两三次,如果你复盘时总想搞清楚“今天到底哪些票资金在进、哪些在出”,又不想每天打开行情软件被广告和荐股弹窗轰炸,那“OpenStock”这个开源项目可能会刚好踩中你的需求。 OpenStock是一套面向个人投资者的开源行情数据抓取与分析工具,核心理念很简单:把A股每日的行情快照、涨跌停数据、板块资金流向、技术指标信号全部自动拉到本地,集中清洗入库,再用一套可扩展的选股策略引擎做二次筛选,最终输出你真正关心的“可以复盘、可以跟踪、可以留档”的数据结果。它适合三类人:一是没有编程基础但想用现成脚本做常用数据留档的交易者,二是刚入门量化、想用真实行情数据练手策略的开发者,三是已