AnyLogic 6.5 New Features - files. AnyLogic 6.5 New Features 5 One †click model documentation

  • View
    214

  • Download
    0

Embed Size (px)

Text of AnyLogic 6.5 New Features - files. AnyLogic 6.5 New Features 5 One †click model...

  • AnyLogic6.5NewFeatures

    3Danimation.................................................................... ...................................................................2

    EasyaccesstoMSExcelfilesonallplatforms................................ ...................................3

    Howtomodelsandotherma terialstosupportlearning...................................4

    Oneclickmodeldocumentation....................................................... .......................................5

    NewobjectsandimprovementsintheEnterpri seLibrary.......................................6

    Newfeaturestosupportagentbasedmo deling..............................................................7

    Supportoftextureds urfacesforshapes..............................................................................8

    Autolabelsforslider.......................................................................................................................9

    2010XJTechnologiesCompanyLtd.AllRightsReservedAnyLogicandXJTechnologiesareregisteredtrademarksofXJTechnologiesCompany

  • AnyLogic6.5NewFeatures 2

    2010XJTechnologieswww.anylogic.com

    3Danimation

    Youarenowabletocreate3DanimationsforyourAnyLogicmodels.The3Danimationframeworkisanaturalextensionofthe2Danimation,soyoudonotneedtolearnanewtechnologytodevelop3Dmodels,anditisveryeasytoaddthethirddimensiontotheexistingones.Youcanhaveboth2Dand3Danimationinonemodel,showthematthesametimeorswitchbetweenthem.Youcandefineseveralviewpoints(cameras)fora3Dsceneanddisplaythemsimultaneouslyfromdifferentperspectives.

    Justaswith2Danimation,theAnyLogic3Danimationisdisplayedasthemodelruns,i.e.itisnotarecordedmoviebutatruereflectionofthemodeldynamics.3rdparty3DobjectscanbeimportedintoAnyLogicandusedasnimationsofyourentities,resourceunitsoragents.a

    3DanimationsinAnyLogicmodels.Anew3Dpalette

  • AnyLogic6.5NewFeatures 3

    EasyaccesstoMSExcelfilesonallplatforms

    WeveaddedanewobjectExcel File(availableintheConnectivitypalette)whichprovideseasyaccesstoMSExcelfilesfromAnyLogicmodelsonallplatforms:Windows,Mac,Linux.TheobjectsupportsExcel19972007fileformat(exten outo:sion.xls).ThenewExcelFileobjectallowy

    ReadExcelfilesandexploretheirconten

    t fdifferenttypesReadindividualcellvaluesandformulaso

    blefunctioncontents ReadAnyLogicta

    ReadAnyLogic1Dand2D[hyper]arrays

    Createnewcells

    changetheirtype xcelspreadsheetsWritetoindividualcellsandWriteAnyLogicdatasetstoE

    Savemodifiedspreadsheets

    SomeoftheusecaseswithExcelFileobjectcanbefoundintheexamplemodelReadingandWritingExcelFilesthatcanbefoundinthe(alsonew)collectionofHow tomodels.Seethenextsectionfordetails!

    excelFile.writeDataSet(dataset,G30 );

    excelFile.readTableFunction(Table,Input!B24 );

    parameter= excelFile.getCellNumericValue(Input!D20);

    Referstoan.xlsfile

    2010XJTechnologieswww.anylogic.com

    ExcelFileobjectandexamplesofitsAPI

  • AnyLogic6.5NewFeatures 4

    2010XJTechnologieswww.anylogic.com

    Howtomodelsandothermaterialstosupportlearning

    Wehavedevelopedandincludedover60smallmodelsexplaininghowtousevariouselementsandfeaturesoftheAnyLogicmodelinglanguage.Thetechniquesusedinthemodelscanbeeasilyreproducedorcopiedintoyourownprojects.Thesearesomeexamples:

    Atypicalstatechartformodelingpurchasingbehavior

    HowtocreateacontextsensitivecalloutthatisshownwithamouseclickHowtomeasuretimeinsystemforanentityinadiscreteeventmodel

    occurswhena icsstockre sacertainthreshold Howtodefineaneventthat systemdynam ache

    ThesemodelsareavailableintheSample ModelssectionoftheWelcomepage.

    ThelistofHowtomodelsintheWelcomepageandHowtoarticlesinAnyLogicHelp

    AnyLogicHelpsystemnowincludestheF.A.Q.sectionwithalargenumberofarticlesexplaininghowtoachieveacertaineffect/behaviorinthemodelorhowtoresolveanissue.ThearticleswereaccumulatedbyoursupportteamduringseveralyearsofserviceforthousandsofAnyLogicusers.TheF.A.Q.sectionisthefirstitemunderAnyLogicHelpgroup(seetheFigure).

    AnyLogic6.5alsoincludesallthesystemdynamicsmodelsfromthedefinitivetextonthesubjectBusinessgforaComplexWorldbyJohnSterman,2000McGDynamics:SystemsThinkingandModelin rawHill.

    Finally,thereisanewtutorialonbuildingaCombinedAgentBasedandSystemDynamicsModelandanewexampleExposure to Radiationwhereanagent(acar)hastovisitseverallocationsnearradiationemissionareas,anditstotalexposuretoradiationiscalculatedbyasystemdynamicsstockandflowdiagram.

  • AnyLogic6.5NewFeatures 5

    Oneclickmodeldocumentation

    AnyLogiccannowautomaticallygeneratedetailedmodeldocumentationwhichincludesthecompletestructuredinformationaboutallmodelelements:activeobjects,statecharts,flowcharts,events,graphics,etc.withtheirproperties.Thedocumentationisavailableinyourchoiceofthemostpopularformats:PDF,DOCX,andHTML.Itcanbeprinted,attachedtootherdocuments,orpublishedontheweb.Itssoeasytodo,justselectthemodelandchooseFile | Create Documentation.

    ThedocumentationopenedinMSWord

    Propertyvaluesintableformat

    Screenshotsofthemodelelements

    2010XJTechnologieswww.anylogic.com

    Thedocumentationwizardandthegenerated.DOCXfileopenedinMSWord

    Incaseyouneedtomakejustascreenshotofsomeparticularmodelelements,youcansimplyselectthoseelementsinthegraphicaleditorandcopythem.InthiscasetheimagecontainingtheselectedelementsisgeneratedandcopiedintotheClipboard.Youcaneasilypasteitlaterintoanyotherapplicationasabitmapimage.

  • AnyLogic6.5NewFeatures 6

    NewobjectsandimprovementsintheEnterpriseLibrary

    TherearenewobjectsintheEnterpriseLibrary:SelectOutput5,TimeMeasureStartandTimeMeasureEnd.SelectOutput5routestheincomingentitiestooneofthefiveoutputportsdependingon(probabilisticordeterministic)conditions.ThepairTimeMeasureStart/TimeMeasureEndmeasurethetimeentitiesspendintheprocessflowchartbetweenthoseobjects,whichcanbe"timeinsystem","lengthofstay",etc.

    Probabilities

    0.2

    0.2

    0.3

    0.01

    default

    orConditions

    entity.type==firstclass

    entity.type==business

    entity.type==economyplus

    entity.type==economy

    Allothers

    SelectOutput5simplifiesroutingofentitiestomutipledestinations

    TimeMeasureStart/Endcollectbothdistributionandhistoryontimespentintheprocessorpartofit.

    ExamplesofusageofTim eStart/EndandSelectOutput5objects

    Entitiesandresourcescannowbeanimatedin3Dspace:youcanassociatea3Dobjectwithe.g.acustomer,atruck,

    eMeasur

    adoctor,etc.andletitmovealonga3Dpath.

    Finally,aminorimprovement:wehaveaddedthemethodgetAbsPosition()totheEntityandResourceUnitclasses.Themethodobtainsthecoordinatesoftheitemsanimationrelativetotheactiveobjectcoordinateoriginforbothsimpleandnetworkbasedanimation.Thiscanbeusedtodevelopcomplexanimationsortodetectmouseclicksoverentitiesandresources(thelatterisdemonstratedintheexamplemodelDetecting Mouse Clicks On Entities And Resources,whichyoucanfindinthenewcollectionofHow tomodels).

    2010XJTechnologieswww.anylogic.com

  • AnyLogic6.5NewFeatures 7

    Newfeaturestosupportagentbasedmodeling

    NowthatAnyLogicnowsupports3Danimationwehavedevelopanewspacetypeforagents:Continuous 3Dspace..Allspacerelatedfunctionalitysuchasmovement,distancecalculation,layout,etc.nowsupportsthreedimensions

    Pleasenotethatthespacetypedefinedintheagentshouldmatchthespacetypedefineintheagentenvironment.Pleasereviewyourmodels.

    Agentvehicleismovingalongalongpathsroads(anewexamplemodelExposuretoRadiation)

    Agentsaircraftsaremovingincontinuous3Dspace(examplemodelAirDefenseSystemnowshownin3D)

    Agentsin3Dspaceandagentsmovingalongpaths

    Thebehaviorofagentsisoftendefinedintheformofstatecharts,sothemessagesthatarereceivedbyanagentshouldinmanycasesberoutedtotheagentsstatecharts.Startingwithversion6.5thiscanbeeasilydonebycheckingtheappropriatecheckboxesinthesectionForward message tooftheAgentpageoftheactiveobjectproperties.ThecodefieldOn message receivedcanstillbeused.

    Anothersimilarimprovementrelatedtoagentsandstatechartsisthenewtypeoftransitiontrigger:Arrival.ThewiththistriggertypeisactivatedwhentheagentarrivestothedestinationpointaftermoveTo() hasbeencalled.

    Sinceversion6.5agentsnowmovealongagiven2Dor3Dpolyline.TwonewmethodshavebeenaddedtotheagentAPI:

    moveTo( x, y, path2D )

    2010XJTechnologieswww.anylogic.com

    moveTo( x, y, z, path3D )

    Iftheoriginand/orthedestinationpointisnotonthepath,theagentmovesto/fromthepathusingtheshortestroute.

  • AnyLogic6.5NewFeatures 8

    Supportoftexturedsurfacesforshapes

    AnyLogicgraphicalshapesnowsupporttexturedsurfacesinadditiontosolidstrokesandfills.Thesetofmaterialsincludesgrass,sand,concrete,metal,brick,wood,carpet,water,etc.Thematerialscanbeusedbothin2Dandin3Danimation.

    3Danimation2Danimation

    Thetexturespalette

    Asamplescenecreatedwithstandardshapesusingtextures

    2010XJTechnologieswww.anylogic.com

  • AnyLogic6.5NewFeatures 9

    2010XJTechnologieswww.anylogic.com

    Autolabelsforslider

    ThenewcommandAdd labelsavailableinthesliderpropertiescreatesthreetextlabelsforthesliderdisplayingitsminimum,maximumandcurrentvalues.Theselabelsareautomaticallyupdatedwhenthesliderstatechangesatruntime.Thisfeaturecansaveyousomedevelopmenttime.Thelabelsareregulartextshapesandcanbemodifiedordeletedifneeded.

    RuntimeDesigntime

    SliderlabelscreatedusingAddlabelscommand

    3D animationEasy access to MS Excel files on all platforms How to models and other materials to support learningOne-click model documentationNew objects and improvements in the Enterprise LibraryNew features to support agent based modelingSupport of textured surfaces for shapesAuto labels for slider