<?xml version="1.0" encoding="UTF-8"?><LscSpec xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="D:\Research\My Works\CSPLSC\LSC2CSP\LSCXSD.xsd">	<SpecName>PhoneSystemFull</SpecName>	<TypeDef>		<Name>DisplayState</Name>		<Enumeration>			<Element>Time</Element>			<Element>Off</Element>			<Element>On</Element>			<Element>Number</Element>		</Enumeration>	</TypeDef>	<TypeDef>		<Name>SpeakerState</Name>		<Enumeration>			<Element>SpeakerOff</Element>			<Element>SpeakerOn</Element>			<Element>Silent</Element>			<Element>Out</Element>		</Enumeration>	</TypeDef>	<Variables>		<Instance>Display</Instance>		<Variable>			<Name>State</Name>			<Type>DisplayState</Type>			<InitValue>Time</InitValue>		</Variable>	</Variables>	<Variables>		<Instance>Speaker</Instance>		<Variable>			<Name>State</Name>			<Type>SpeakerState</Type>			<InitValue>SpeakerOn</InitValue>		</Variable>	</Variables>	<UnvChart>		<LscName>OpenCover</LscName>		<Prechart>			<Instance>				<Name>User</Name>				<ColdLocation>					<Event>						<ColdMessage>							<Output>								<Content>Open</Content>								<To>Cover</To>							</Output>						</ColdMessage>					</Event>				</ColdLocation>			</Instance>			<Instance>				<Name>Cover</Name>				<ColdLocation>					<Event>						<ColdMessage>							<Input>								<Content>Open</Content>								<From>Cover</From>							</Input>						</ColdMessage>					</Event>				</ColdLocation>			</Instance>		</Prechart>		<Instance>			<Name>User</Name>			<ColdLocation>				<Event>					<ColdMessage>						<Input>							<Content>Sound_Silent</Content>							<From>Speaker</From>						</Input>					</ColdMessage>				</Event>			</ColdLocation>		</Instance>		<Instance>			<Name>Speaker</Name>			<ColdLocation>				<Event>					<Action>						<SetState>							<Variable>State</Variable>							<Value>Silent</Value>						</SetState>					</Action>				</Event>			</ColdLocation>			<ColdLocation>				<Event>					<ColdMessage>						<Output>							<Content>Sound_Silent</Content>							<To>User</To>						</Output>					</ColdMessage>				</Event>			</ColdLocation>		</Instance>	</UnvChart>	<UnvChart>		<LscName>CloseCover</LscName>		<Prechart>			<Instance>				<Name>User</Name>				<ColdLocation>					<Event>						<ColdMessage>							<Output>								<Content>Close</Content>								<To>Cover</To>							</Output>						</ColdMessage>					</Event>				</ColdLocation>			</Instance>			<Instance>				<Name>Cover</Name>				<ColdLocation>					<Event>						<ColdMessage>							<Input>								<Content>Close</Content>								<From>User</From>							</Input>						</ColdMessage>					</Event>				</ColdLocation>			</Instance>		</Prechart>		<Instance>			<Name>User</Name>			<Subchart>				<ID>12</ID>				<Body>					<ColdLocation>						<Event>							<ColdMessage>								<Input>									<Content>SetState_Time</Content>									<From>Display</From>								</Input>							</ColdMessage>						</Event>					</ColdLocation>				</Body>			</Subchart>			<ColdLocation>				<Event>					<ColdMessage>						<Input>							<Content>Sound_Silent</Content>							<From>Speaker</From>						</Input>					</ColdMessage>				</Event>			</ColdLocation>		</Instance>		<Instance>			<Name>Display</Name>			<Subchart>				<ID>12</ID>				<Body>					<ColdCondition>						<ID>1</ID>						<Variables>State</Variables>						<Expression>State != Off</Expression>					</ColdCondition>					<ColdLocation>						<Event>							<Action>								<SetState>									<Variable>State</Variable>									<Value>Time</Value>								</SetState>							</Action>						</Event>					</ColdLocation>					<ColdLocation>						<Event>							<ColdMessage>								<Output>									<Content>SetState_Time</Content>									<To>User</To>								</Output>							</ColdMessage>						</Event>					</ColdLocation>				</Body>			</Subchart>		</Instance>		<Instance>			<Name>Speaker</Name>			<ColdLocation>				<Event>					<Action>						<SetState>							<Variable>State</Variable>							<Value>Silent</Value>						</SetState>					</Action>				</Event>			</ColdLocation>			<ColdLocation>				<Event>					<ColdMessage>						<Output>							<Content>Sound_Silent</Content>							<To>User</To>						</Output>					</ColdMessage>				</Event>			</ColdLocation>		</Instance>	</UnvChart>	<UnvChart>		<LscName>Send</LscName>		<Prechart>			<Instance>				<Name>User</Name>				<ColdLocation>					<Event>						<ColdMessage>							<Output>								<Content>Click</Content>								<To>SendKey</To>							</Output>						</ColdMessage>					</Event>				</ColdLocation>			</Instance>			<Instance>				<Name>SendKey</Name>				<ColdLocation>					<Event>						<ColdMessage>							<Input>								<Content>Click</Content>								<From>User</From>							</Input>						</ColdMessage>					</Event>				</ColdLocation>			</Instance>		</Prechart>		<Instance>			<Name>User</Name>			<ColdLocation>				<Event>					<ColdMessage>						<Input>							<Content>Sound_Out</Content>							<From>Speaker</From>						</Input>					</ColdMessage>				</Event>			</ColdLocation>		</Instance>		<Instance>			<Name>Speaker</Name>			<ColdLocation>				<Event>					<Action>						<SetState>							<Variable>State</Variable>							<Value>Out</Value>						</SetState>					</Action>				</Event>			</ColdLocation>			<ColdLocation>				<Event>					<ColdMessage>						<Output>							<Content>Sound_Out</Content>							<To>User</To>						</Output>					</ColdMessage>				</Event>			</ColdLocation>		</Instance>	</UnvChart>	<UnvChart>		<LscName>END</LscName>		<Prechart>			<Instance>				<Name>User</Name>				<ColdLocation>					<Event>						<ColdMessage>							<Output>								<Content>Click</Content>								<To>END</To>							</Output>						</ColdMessage>					</Event>				</ColdLocation>			</Instance>		</Prechart>		<Instance>			<Name>User</Name>			<ColdLocation>				<Event>					<ColdMessage>						<Input>							<Content>Sound_Silent</Content>							<From>Speaker</From>						</Input>					</ColdMessage>				</Event>			</ColdLocation>			<Subchart>				<ID>13</ID>				<Body>					<ColdLocation>						<Event>							<ColdMessage>								<Input>									<Content>SetState_Time</Content>									<From>Display</From>								</Input>							</ColdMessage>						</Event>					</ColdLocation>				</Body>			</Subchart>		</Instance>		<Instance>			<Name>Speaker</Name>			<ColdLocation>				<Event>					<Action>						<SetState>							<Variable>State</Variable>							<Value>Silent</Value>						</SetState>					</Action>				</Event>			</ColdLocation>			<ColdLocation>				<Event>					<ColdMessage>						<Output>							<Content>Sound_Silent</Content>							<To>User</To>						</Output>					</ColdMessage>				</Event>			</ColdLocation>		</Instance>		<Instance>			<Name>Display</Name>			<ColdCondition>				<ID>23</ID>				<Variables>State</Variables>				<Expression>State != Off</Expression>			</ColdCondition>			<ColdLocation>				<Event>					<Action>						<SetState>							<Variable>State</Variable>							<Value>Time</Value>						</SetState>					</Action>				</Event>			</ColdLocation>			<ColdLocation>				<Event>					<ColdMessage>						<Output>							<Content>SetState_Time</Content>							<To>User</To>						</Output>					</ColdMessage>				</Event>			</ColdLocation>		</Instance>	</UnvChart>	<UnvChart>		<LscName>Dial</LscName>		<Prechart>			<Instance>				<Name>User</Name>				<ColdLocation>					<Event>						<ColdMessage>							<Output>								<Content>Click</Content>								<To>Keyboard</To>								<Parameter>									<Name>X41</Name>									<Type>{0..9}</Type>								</Parameter>							</Output>						</ColdMessage>					</Event>				</ColdLocation>			</Instance>		</Prechart>		<Instance>			<Name>User</Name>			<Subchart>				<ID>14</ID>				<If-Then-Else>					<If-Then>						<ColdLocation>							<Event>								<ColdMessage>									<Input>										<Content>SetState_Number</Content>										<From>Display</From>									</Input>								</ColdMessage>							</Event>						</ColdLocation>						<ColdLocation>							<Event>								<ColdMessage>									<Input>										<Content>Show</Content>										<From>Display</From>										<Parameter>											<Name>X41</Name>											<Type>{0..9}</Type>										</Parameter>									</Input>								</ColdMessage>							</Event>						</ColdLocation>					</If-Then>					<Else>						<Subchart>							<ID>17</ID>							<Body>								<ColdLocation>									<Event>										<ColdMessage>											<Input>												<Content>Show_AddDigit</Content>												<From>Display</From>												<Parameter>													<Name>X41</Name>													<Type>{0..9}</Type>												</Parameter>											</Input>										</ColdMessage>									</Event>								</ColdLocation>							</Body>						</Subchart>					</Else>				</If-Then-Else>			</Subchart>		</Instance>		<Instance>			<Name>Display</Name>			<Subchart>				<ID>14</ID>				<If-Then-Else>					<If-Then>						<ColdCondition>							<ID>37</ID>							<Variables>State</Variables>							<Expression>State==Time</Expression>						</ColdCondition>						<ColdLocation>							<Event>								<Action>									<SetState>										<Variable>										State</Variable>										<Value>Number</Value>									</SetState>								</Action>							</Event>						</ColdLocation>						<ColdLocation>							<Event>								<ColdMessage>									<Output>										<Content>SetStata_Number</Content>										<To>User</To>									</Output>								</ColdMessage>							</Event>						</ColdLocation>						<ColdLocation>							<Event>								<ColdMessage>									<Output>										<Content>Show</Content>										<To>User</To>										<Parameter>											<Name>X41</Name>											<Type>{0..9}</Type>										</Parameter>									</Output>								</ColdMessage>							</Event>						</ColdLocation>					</If-Then>					<Else>						<Subchart>							<ID>17</ID>							<Body>								<ColdCondition>									<ID>38</ID>									<Variables>State</Variables>									<Expression>State==Number</Expression>								</ColdCondition>								<ColdLocation>									<Event>										<ColdMessage>											<Output>												<Content>Show_AddDigit</Content>												<To>User</To>												<Parameter>													<Name>X41</Name>													<Type>{0..9}</Type>												</Parameter>											</Output>										</ColdMessage>									</Event>								</ColdLocation>							</Body>						</Subchart>					</Else>				</If-Then-Else>			</Subchart>		</Instance>	</UnvChart>	<UnvChart>		<LscName>CLR</LscName>		<Prechart>			<Instance>				<Name>User</Name>				<ColdLocation>					<Event>						<ColdMessage>							<Output>								<Content>Click</Content>								<To>CLR</To>							</Output>						</ColdMessage>					</Event>				</ColdLocation>			</Instance>			<Instance>				<Name>CLR</Name>				<ColdLocation>					<Event>						<ColdMessage>							<Input>								<Content>Click</Content>								<From>User</From>							</Input>						</ColdMessage>					</Event>				</ColdLocation>			</Instance>		</Prechart>		<Instance>			<Name>User</Name>			<Subchart>				<ID>122</ID>				<Body>					<ColdLocation>						<Event>							<ColdMessage>								<Input>									<Content>Show_ClrDigit</Content>									<From>Display</From>								</Input>							</ColdMessage>						</Event>					</ColdLocation>				</Body>			</Subchart>		</Instance>		<Instance>			<Name>Display</Name>			<Subchart>				<ID>122</ID>				<Body>					<ColdCondition>						<ID>123</ID>						<Variables>State</Variables>						<Expression>State==Number</Expression>					</ColdCondition>					<ColdLocation>						<Event>							<ColdMessage>								<Output>									<Content>Show_ClrDigit</Content>									<To>User</To>								</Output>							</ColdMessage>						</Event>					</ColdLocation>				</Body>			</Subchart>		</Instance>	</UnvChart>	<UnvChart>		<LscName>LongClr</LscName>		<Prechart>			<Instance>				<Name>User</Name>				<ColdLocation>					<Event>						<ColdMessage>							<Output>								<Content>LongClick</Content>								<To>CLR</To>							</Output>						</ColdMessage>					</Event>				</ColdLocation>			</Instance>			<Instance>				<Name>CLR</Name>				<ColdLocation>					<Event>						<ColdMessage>							<Input>								<Content>LongClick</Content>								<From>User</From>							</Input>						</ColdMessage>					</Event>				</ColdLocation>			</Instance>		</Prechart>		<Instance>			<Name>User</Name>			<Subchart>				<ID>127</ID>				<Body>					<ColdLocation>						<Event>							<ColdMessage>								<Input>									<Content>SetState_Time</Content>									<From>Display</From>								</Input>							</ColdMessage>						</Event>					</ColdLocation>				</Body>			</Subchart>		</Instance>		<Instance>			<Name>Display</Name>			<Subchart>				<ID>127</ID>				<Body>					<ColdCondition>						<ID>149</ID>						<Variables>State</Variables>						<Expression>State==Number</Expression>					</ColdCondition>					<ColdLocation>						<Event>							<Action>								<SetState>									<Variable>State</Variable>									<Value>Time</Value>								</SetState>							</Action>						</Event>					</ColdLocation>					<ColdLocation>						<Event>							<ColdMessage>								<Output>									<Content>SetState_Time</Content>									<To>User</To>								</Output>							</ColdMessage>						</Event>					</ColdLocation>				</Body>			</Subchart>		</Instance>	</UnvChart>	<UnvChart>		<LscName>ReceiveAck</LscName>		<Prechart>			<Instance>				<Name>Chip</Name>				<ColdLocation>					<Event>						<ColdMessage>							<Input>								<Content>Receive_Ack</Content>								<From>env</From>							</Input>						</ColdMessage>					</Event>				</ColdLocation>			</Instance>		</Prechart>		<Instance>			<Name>Speaker</Name>			<ColdLocation>				<Event>					<Action>						<SetState>							<Variable>State</Variable>							<Value>Silent</Value>						</SetState>					</Action>				</Event>			</ColdLocation>		</Instance>	</UnvChart>	<UnvChart>		<LscName>Power</LscName>		<Prechart>			<Instance>				<Name>User</Name>				<ColdLocation>					<Event>						<ColdMessage>							<Output>								<Content>Click</Content>								<To>PWR</To>							</Output>						</ColdMessage>					</Event>				</ColdLocation>			</Instance>			<Instance>				<Name>PWR</Name>				<ColdLocation>					<Event>						<ColdMessage>							<Input>								<Content>Click</Content>								<From>User</From>							</Input>						</ColdMessage>					</Event>				</ColdLocation>			</Instance>		</Prechart>		<Instance>			<Name>User</Name>			<Subchart>				<ID>223</ID>				<If-Then-Else>					<If-Then>						<ColdLocation>							<Event>								<ColdMessage>									<Input>										<Content>SetState_Time</Content>										<From>Display</From>									</Input>								</ColdMessage>							</Event>						</ColdLocation>					</If-Then>					<Else>						<ColdLocation>							<Event>								<ColdMessage>									<Input>										<Content>SetState_Off</Content>										<From>Display</From>									</Input>								</ColdMessage>							</Event>						</ColdLocation>					</Else>				</If-Then-Else>			</Subchart>		</Instance>		<Instance>			<Name>Display</Name>			<Subchart>				<ID>24</ID>				<If-Then-Else>					<If-Then>						<ColdCondition>							<ID>24</ID>							<Variables>State</Variables>							<Expression>State==Off</Expression>						</ColdCondition>						<ColdLocation>							<Event>								<Action>									<SetState>										<Variable>State</Variable>										<Value>Time</Value>									</SetState>								</Action>							</Event>						</ColdLocation>						<ColdLocation>							<Event>								<ColdMessage>									<Output>										<Content>SetState_Time</Content>										<To>User</To>									</Output>								</ColdMessage>							</Event>						</ColdLocation>					</If-Then>					<Else>						<ColdLocation>							<Event>								<Action>									<SetState>										<Variable>State</Variable>										<Value>Off</Value>									</SetState>								</Action>							</Event>						</ColdLocation>						<ColdLocation>							<Event>								<ColdMessage>									<Output>										<Content>SetState_Off</Content>										<To>User</To>									</Output>								</ColdMessage>							</Event>						</ColdLocation>					</Else>				</If-Then-Else>			</Subchart>		</Instance>	</UnvChart>	<UnvChart>		<LscName>Receive</LscName>		<Prechart>			<Instance>				<Name>Chip</Name>				<ColdLocation>					<Event>						<ColdMessage>							<Input>								<Content>Receive</Content>								<From>env</From>								<Parameter>									<Name>X26</Name>									<Type>{0..9}</Type>								</Parameter>							</Input>						</ColdMessage>					</Event>				</ColdLocation>			</Instance>		</Prechart>		<Instance>			<Name>User</Name>			<ColdLocation>				<Event>					<ColdMessage>						<Input>							<Content>Show</Content>							<From>Display</From>							<Parameter>								<Name>X26</Name>								<Type>{0..9}</Type>							</Parameter>						</Input>					</ColdMessage>				</Event>			</ColdLocation>			<ColdLocation>				<Event>					<ColdMessage>						<Input>							<Content>SetState_Number</Content>							<From>Display</From>						</Input>					</ColdMessage>				</Event>			</ColdLocation>			<ColdLocation>				<Event>					<ColdMessage>						<Input>							<Content>Sound_In</Content>							<From>Speaker</From>						</Input>					</ColdMessage>				</Event>			</ColdLocation>		</Instance>		<Instance>			<Name>Display</Name>			<ColdLocation>				<Event>					<ColdMessage>						<Output>							<Content>Show</Content>							<To>User</To>							<Parameter>								<Name>X26</Name>								<Type>{0..9}</Type>							</Parameter>						</Output>					</ColdMessage>				</Event>			</ColdLocation>			<ColdLocation>				<Event>					<Action>						<SetState>							<Variable>State</Variable>							<Value>Number</Value>						</SetState>					</Action>				</Event>			</ColdLocation>			<ColdLocation>				<Event>					<ColdMessage>						<Output>							<Content>Sound_In</Content>							<To>User</To>						</Output>					</ColdMessage>				</Event>			</ColdLocation>		</Instance>	</UnvChart>	<ExtChart>		<LscName>Test</LscName>		<Instance>			<Name>User</Name>			<ColdLocation>				<Event>					<ColdMessage>						<Output>							<Content>Close</Content>							<To>Cover</To>						</Output>					</ColdMessage>				</Event>			</ColdLocation>			<ColdLocation>				<Event>					<ColdMessage>						<Input>							<Content>SetState_Time</Content>							<From>Display</From>						</Input>					</ColdMessage>				</Event>			</ColdLocation>			<ColdLocation>				<Event>					<ColdMessage>						<Input>							<Content>Sound_Silent</Content>							<From>Speaker</From>						</Input>					</ColdMessage>				</Event>			</ColdLocation>		</Instance>		<Instance>			<Name>Cover</Name>			<ColdLocation>				<Event>					<ColdMessage>						<Input>							<Content>Close</Content>							<From>User</From>						</Input>					</ColdMessage>				</Event>			</ColdLocation>		</Instance>		<Instance>			<Name>Display</Name>			<ColdLocation>				<Event>					<Action>						<SetState>							<Variable>State</Variable>							<Value>Time</Value>						</SetState>					</Action>				</Event>			</ColdLocation>			<ColdLocation>				<Event>					<ColdMessage>						<Output>							<Content>SetState_Time</Content>							<To>User</To>						</Output>					</ColdMessage>				</Event>			</ColdLocation>		</Instance>		<Instance>			<Name>Speaker</Name>			<ColdLocation>				<Event>					<Action>						<SetState>							<Variable>State</Variable>							<Value>Silent</Value>						</SetState>					</Action>				</Event>			</ColdLocation>			<ColdLocation>				<Event>					<ColdMessage>						<Output>							<Content>Sound_Silent</Content>							<To>User</To>						</Output>					</ColdMessage>				</Event>			</ColdLocation>		</Instance>	</ExtChart>	<ExtChart>		<LscName>Talk</LscName>		<Instance>			<Name>User</Name>			<ColdLocation>				<Event>					<ColdMessage>						<Output>							<Content>Open</Content>							<To>Cover</To>						</Output>					</ColdMessage>				</Event>			</ColdLocation>			<ColdLocation>				<Event>					<ColdMessage>						<Output>							<Content>Click</Content>							<To>Keyboard</To>							<Parameter>								<Name>2</Name>								<Type>{0..9}</Type>									</Parameter>							</Output>					</ColdMessage>				</Event>			</ColdLocation>			<ColdLocation>				<Event>					<ColdMessage>						<Output>							<Content>Click</Content>							<To>Keyboard</To>							<Parameter>								<Name>6</Name>								<Type>{0..9}</Type>									</Parameter>							</Output>					</ColdMessage>				</Event>			</ColdLocation>			<ColdLocation>				<Event>					<ColdMessage>						<Output>							<Content>Click</Content>							<To>Keyboard</To>							<Parameter>								<Name>5</Name>								<Type>{0..9}</Type>									</Parameter>							</Output>					</ColdMessage>				</Event>			</ColdLocation>			<ColdLocation>				<Event>					<ColdMessage>						<Output>							<Content>Click</Content>							<To>Keyboard</To>							<Parameter>								<Name>1</Name>								<Type>{0..9}</Type>									</Parameter>							</Output>					</ColdMessage>				</Event>			</ColdLocation>			<ColdLocation>				<Event>					<ColdMessage>						<Output>							<Content>Click</Content>							<To>SendKey</To>						</Output>					</ColdMessage>				</Event>			</ColdLocation>			<ColdLocation>				<Event>					<ColdMessage>						<Output>							<Content>Close</Content>							<To>Cover</To>						</Output>					</ColdMessage>				</Event>			</ColdLocation>		</Instance>		<Instance>			<Name>Cover</Name>			<ColdLocation>				<Event>					<ColdMessage>						<Input>							<Content>Open</Content>							<From>User</From>						</Input>					</ColdMessage>				</Event>			</ColdLocation>			<ColdLocation>				<Event>					<ColdMessage>						<Input>							<Content>Close</Content>							<From>User</From>						</Input>					</ColdMessage>				</Event>			</ColdLocation>		</Instance>		<Instance>			<Name>KeyBoard</Name>			<ColdLocation>				<Event>					<ColdMessage>						<Input>							<Content>Click</Content>							<From>User</From>							<Parameter>								<Name>2</Name>								<Type>{0..9}</Type>							</Parameter>						</Input>					</ColdMessage>				</Event>			</ColdLocation>			<ColdLocation>				<Event>					<ColdMessage>						<Input>							<Content>Click</Content>							<From>User</From>							<Parameter>								<Name>6</Name>								<Type>{0..9}</Type>							</Parameter>						</Input>					</ColdMessage>				</Event>			</ColdLocation>			<ColdLocation>				<Event>					<ColdMessage>						<Input>							<Content>Click</Content>							<From>User</From>							<Parameter>								<Name>5</Name>								<Type>{0..9}</Type>							</Parameter>						</Input>					</ColdMessage>				</Event>			</ColdLocation>			<ColdLocation>				<Event>					<ColdMessage>						<Input>							<Content>Click</Content>							<From>User</From>							<Parameter>								<Name>1</Name>								<Type>{0..9}</Type>							</Parameter>						</Input>					</ColdMessage>				</Event>			</ColdLocation>		</Instance>		<Instance>			<Name>SendKey</Name>			<ColdLocation>				<Event>					<ColdMessage>						<Input>							<Content>Click</Content>							<From>User</From>						</Input>					</ColdMessage>				</Event>			</ColdLocation>		</Instance>	</ExtChart></LscSpec>