路径规划

This commit is contained in:
zhangyuanzhen
2020-01-09 20:28:28 +08:00
parent eb086cd74a
commit 22f49276a1
19 changed files with 384 additions and 9 deletions

View File

@@ -79,6 +79,24 @@ public class MogoCalculatePath {
this.mTrafficLights = mTrafficLights;
}
private StringBuilder mDescBuilder = null;
public String getDesc() {
if ( mDescBuilder == null ) {
mDescBuilder = new StringBuilder();
int lightsSize = getTrafficLights();
if ( lightsSize > 0 ) {
mDescBuilder.append( "红绿灯" ).append( lightsSize ).append( "" );
}
//mDescBuilder.append( " " );
//mDescBuilder.append( "收费" ).append( mPath.getTollCost() ).append( "元" );
}
return mDescBuilder.toString();
}
public String getTagId() {
return mTagId;
}