⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 foodsource.ctxt

📁 Java source code for the Ant Colony Optimization Problem.
💻 CTXT
字号:
#BlueJ class context
comment0.target=class\ FoodSource
comment0.text=Class\ for\ defining\ a\ food\ source.\n@author\ Jo\ Wood\n@version\ 1.4,\ 10th\ October,\ 2001.\n\n
comment1.target=width
comment10.target=foodLevel
comment2.params=x\ y\ fLevel
comment2.target=FoodSource(float,float,int)
comment2.text=Creates\ a\ food\ source\ at\ a\ given\ location\ and\ value.\n@param\ x\ x\ location\ of\ the\ food\ source.\n@param\ y\ y\ location\ of\ the\ food\ source.\n@param\ fLevel\ Amount\ of\ available\ food.\n\n
comment3.params=g
comment3.target=void\ paint(Graphics)
comment3.text=Draws\ the\ food\ source.\n@param\ g\ Graphics\ context\ in\ which\ to\ draw\ the\ food\ source.\n\n
comment4.params=
comment4.target=int\ getFoodLevel()
comment4.text=Returns\ the\ level\ of\ food\ left\ in\ the\ source.\n@return\ The\ level\ of\ food\ left\ in\ the\ source.\n\n
comment5.params=foodToRemove
comment5.target=int\ removeFood(int)
comment5.text=Allows\ a\ given\ amount\ of\ food\ to\ be\ removed.\ If\ there\ is\nnot\ enough\ food\ left,\ remaining\ food\ will\ be\ removed.\n@return\ foodToRemove\ Amount\ of\ food\ to\ remove.\n@return\ Amount\ of\ food\ actually\ removed\ from\ the\ source.\n\n
comment6.target=y
comment7.target=x
comment8.params=bounds
comment8.target=void\ setBounds(Footprint)
comment8.text=Sets\ the\ bounding\ rectangle\ of\ this\ object.\n@param\ bounds\ New\ spatial\ footprint\ of\ this\ food\ source.\n\n
comment9.target=height
numComments=11

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -