BowlerKernel
Public Member Functions | Static Public Member Functions | Private Member Functions | Static Private Attributes | List of all members
com.neuronrobotics.bowlerstudio.scripting.ArduinoLoader Class Reference
Inheritance diagram for com.neuronrobotics.bowlerstudio.scripting.ArduinoLoader:
Inheritance graph
[legend]
Collaboration diagram for com.neuronrobotics.bowlerstudio.scripting.ArduinoLoader:
Collaboration graph
[legend]

Public Member Functions

Object inlineScriptRun (File code, ArrayList< Object > args) throws Exception
 
Object inlineScriptRun (String code, ArrayList< Object > args) throws Exception
 
String getShellType ()
 
boolean getIsTextFile ()
 
String getDefaultContents ()
 
ArrayList< String > getFileExtenetion ()
 
- Public Member Functions inherited from com.neuronrobotics.bowlerstudio.scripting.IScriptingLanguage
default boolean isSupportedFileExtenetion (String filename)
 
default String getDefaultContents (String gitURL, String fileSlug)
 

Static Public Member Functions

static void installBoard (String product, String arch) throws Exception
 
static void installLibrary (String lib) throws Exception
 
static void run (String execString) throws Exception
 
static String getDefaultPort ()
 
static void setDefaultPort (String defaultPort)
 
static String getDefaultBoard ()
 
static void setDefaultBoard (String defaultBoard)
 
static String getARDUINOExec ()
 
static void setARDUINOExec (String aRDUINO)
 

Private Member Functions

File findIno (File start)
 

Static Private Attributes

static String ARDUINO = "arduino"
 
static String defaultPort = null
 
static String defaultBoard = null
 
static boolean loadedBowler = false
 

Detailed Description

Definition at line 9 of file ArduinoLoader.java.

Member Function Documentation

◆ findIno()

File com.neuronrobotics.bowlerstudio.scripting.ArduinoLoader.findIno ( File  start)
private

◆ getARDUINOExec()

static String com.neuronrobotics.bowlerstudio.scripting.ArduinoLoader.getARDUINOExec ( )
static

◆ getDefaultBoard()

static String com.neuronrobotics.bowlerstudio.scripting.ArduinoLoader.getDefaultBoard ( )
static

◆ getDefaultContents()

String com.neuronrobotics.bowlerstudio.scripting.ArduinoLoader.getDefaultContents ( )

Get the contents of an empty file

Returns

Implements com.neuronrobotics.bowlerstudio.scripting.IScriptingLanguage.

Definition at line 154 of file ArduinoLoader.java.

◆ getDefaultPort()

static String com.neuronrobotics.bowlerstudio.scripting.ArduinoLoader.getDefaultPort ( )
static

◆ getFileExtenetion()

ArrayList<String> com.neuronrobotics.bowlerstudio.scripting.ArduinoLoader.getFileExtenetion ( )

Returns the list of supported file extentions Convention is to provide just the leters that make up the file extention

Implements com.neuronrobotics.bowlerstudio.scripting.IScriptingLanguage.

Definition at line 204 of file ArduinoLoader.java.

◆ getIsTextFile()

boolean com.neuronrobotics.bowlerstudio.scripting.ArduinoLoader.getIsTextFile ( )

This function returns if this is a binary file or a text file

Returns
true if the file is a text file.

Implements com.neuronrobotics.bowlerstudio.scripting.IScriptingLanguage.

Definition at line 131 of file ArduinoLoader.java.

◆ getShellType()

String com.neuronrobotics.bowlerstudio.scripting.ArduinoLoader.getShellType ( )

Returns the HashMap key for this language

Implements com.neuronrobotics.bowlerstudio.scripting.IScriptingLanguage.

Definition at line 126 of file ArduinoLoader.java.

◆ inlineScriptRun() [1/2]

Object com.neuronrobotics.bowlerstudio.scripting.ArduinoLoader.inlineScriptRun ( File  code,
ArrayList< Object >  args 
) throws Exception

◆ inlineScriptRun() [2/2]

Object com.neuronrobotics.bowlerstudio.scripting.ArduinoLoader.inlineScriptRun ( String  code,
ArrayList< Object >  args 
) throws Exception

This interface is for adding additional language support.

Parameters
codethe text content of the code to be executed
argsthe incoming arguments as a list of objects
Returns
the objects returned form the code that ran

Implements com.neuronrobotics.bowlerstudio.scripting.IScriptingLanguage.

Definition at line 120 of file ArduinoLoader.java.

◆ installBoard()

static void com.neuronrobotics.bowlerstudio.scripting.ArduinoLoader.installBoard ( String  product,
String  arch 
) throws Exception
static

◆ installLibrary()

static void com.neuronrobotics.bowlerstudio.scripting.ArduinoLoader.installLibrary ( String  lib) throws Exception
static

◆ run()

static void com.neuronrobotics.bowlerstudio.scripting.ArduinoLoader.run ( String  execString) throws Exception
static

◆ setARDUINOExec()

static void com.neuronrobotics.bowlerstudio.scripting.ArduinoLoader.setARDUINOExec ( String  aRDUINO)
static

◆ setDefaultBoard()

static void com.neuronrobotics.bowlerstudio.scripting.ArduinoLoader.setDefaultBoard ( String  defaultBoard)
static

◆ setDefaultPort()

static void com.neuronrobotics.bowlerstudio.scripting.ArduinoLoader.setDefaultPort ( String  defaultPort)
static

Member Data Documentation

◆ ARDUINO

String com.neuronrobotics.bowlerstudio.scripting.ArduinoLoader.ARDUINO = "arduino"
staticprivate

◆ defaultBoard

String com.neuronrobotics.bowlerstudio.scripting.ArduinoLoader.defaultBoard = null
staticprivate

◆ defaultPort

String com.neuronrobotics.bowlerstudio.scripting.ArduinoLoader.defaultPort = null
staticprivate

◆ loadedBowler

boolean com.neuronrobotics.bowlerstudio.scripting.ArduinoLoader.loadedBowler = false
staticprivate

The documentation for this class was generated from the following file: