URL详解

非常非常好的一篇文章:

http://www.webdevelopersnotes.com/basics/urls.php3


URL stands for Uniform Resource Locator, which means it is a uniform (same throughout the world) way tolocate a resource (file or document) on the Internet. The URL specifies the address of a file and every file on the Internet has a unique address. Web software, such as your browser, use the URL to retrieve a file from the computer on which it resides.

The actual URL is a set of four numbers separated by periods(其实就是IP地址). An example of this would be 202.147.23.8 but as these are difficult for humans to use, addresses are represented in alphanumeric form that is more descriptive and easy to remember. Thus, the URL of my site which is URL 209.164.80.192 can also be written as www.simplygraphix.com. The InternetDomain Name System (就是DNS服务器) translates the alphanumerical address to numeric.

Format of a URL:
Protocol://site address/path/filename

For example, the URL of my company site is:
http://www.simplygraphix.com/
and a typical page on this site would be:
http://www.simplygraphix.com/portfolio/4.html


The above URL consist of:

  • Protocol: http
  • Host computer name: www
  • Domain name: simplygraphix
  • Domain type: com
  • Path: /portfolio
  • File name 4.html

Protocols

In addition to the http protocol (mentioned above), there are a few other protocols on the Internet.

  • File: Enables a hyperlink to access a file on a local system. 这个也很常见啊~
  • FTP: Used to download files from remote machines.
  • Gopher: Helps in accessing a gopher server.
  • mailto: Calls SMTP (the Simple Mail Transport Protocol) and enables a hyperlink to send an addressed email message.
  • news: helps in accessing a USENET newsgroup.
  • telnet: Provides the means for a hyperlink to open a telnet session on a remote computer.

Site Address

The site address consists of the host computer name, the domain name and the domain type. The domain name should be descriptive for easy comprehension and is usually the name of the organization or company.
There are various domain types. Some of them are listed below:

com: specifies commercial entities
net: highlights networks or network providers
org: organizations (usually non-profit)
edu: colleges and universities (education providers)
gov: government agencies
mil: military entities of the United States of America

For countries other than the U.S.A., the URL can be longer as in:
http://www.bioinfo.ernet.in

The general format of such URLs is:
machine name.domain name.domain type.country code.

Domain types can also be different for different countries. For example, an educational site can have the domain name www.school.ac.uk in the United Kingdom. Thusac (academic) is used instead of edu. Similarlycom is represented as co for Indian domain names.

Path Name

Path name specifies the hierarchic location of the said file on the computer. For instance, in http://www.simplygraphix.com/portfolio/4.html the file4.html is located in portfolio subdirectory under the server root directory.

Port

Browsers communicate with the server using entry points called ports. Associated with each protocol is a default port number, such as HTTP defaults to port 80.
The server administrator can configure the server to handle http requests at a different port. In such cases, the port number has to be supplied as a part of the URL. The port number is placed at the end of the URL after a colon.

www.some-address.com:50

HTML Anchors

With HTML you can specify anchors within files. These anchors are end points to hyperlinks placed either in the same file or some other files. Anchors are placed to link to specific locations in a file. They can be a part of the URL and are represented with a hash symbol (#) followed by the link name.

www.some-address.com/some-file.html#some-location

所以有时不需要得到请求的整个file,只需要根据偏移量得到其中需要的一部分就行了。

内容概要:本文详细介绍了一种基于Simulink的表贴式永磁同步电机(SPMSM)有限控制集模型预测电流控制(FCS-MPCC)仿真系统。通过构建PMSM数学模型、坐标变换、MPC控制器、SVPWM调制等模块,实现了对电机定子电流的高精度跟踪控制,具备快速动态响应和低稳态误差的特点。文中提供了完整的仿真建模步骤、关键参数设置、核心MATLAB函数代码及仿真结果分析,涵盖转速、电流、转矩和三相电流波形,验证了MPC控制策略在动态性能、稳态精度和抗负载扰动方面的优越性,并提出了参数自整定、加权代价函数、模型预测转矩控制和弱磁扩速等优化方向。; 适合人群:自动化、电气工程及其相关专业本科生、研究生,以及从事电机控制算法研究与仿真的工程技术人员;具备一定的电机原理、自动控制理论和Simulink仿真基础者更佳; 使用场景及目标:①用于永磁同步电机模型预测控制的教学演示、课程设计或毕业设计项目;②作为电机先进控制算法(如MPC、MPTC)的仿真验证平台;③支撑科研中对控制性能优化(如动态响应、抗干扰能力)的研究需求; 阅读建议:建议读者结合Simulink环境动手搭建模型,深入理解各模块间的信号流向与控制逻辑,重点掌握预测模型构建、代价函数设计与开关状态选择机制,并可通过修改电机参数或控制策略进行拓展实验,以增强实践与创新能力。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值