Reference Manual

| Table of Contents |

Intrinsics


 
Built-in actions:
void ConnectAction( String actionName,
Object sourceObject)
 
Float GetCycleTime()
 
String GetHostAddress()
 
String GetHostName()
 
String GetSystemProperty( String keyString )
 
void OpenConsole()
 
void OpenInputDialog( AgentInfo selfAgentInfo,
String dialogName,
String promptString,
Class expectedType )
 
void OpenOutputDialog(String outputString)
 
void RegisterAgent( Agent newAgent )
 
void RemoveRule( String ruleName)
 
void SendKqmlMessage( KqmlMessage outputMessage,
String receiverName,
String performative,
Object content,
String replyWith,
String inReplyTo,
String language,
String ontology,
String protocol,
String toAgentName,
String fromAgentName)
 
void SetCycleTime(Float cycleTime)
 
void ShutdownEngine()
 
void Sleep( int numberOfSeconds )
 
void SleepUntilMessage()
 
void SleepWhenIdle()
 
void SystemOutPrintln( String outputString )
 
 
Object comparison operators:
EQUALS
NOT_EQUALS
Boolean operators:
AND
OR
NOT
 
Binding operator:
BIND
 
Quantifiers:
FOR_ALL
EXISTS
 
Numerical comparison operators:
=
!=
<
<=
>
>=
 
String functions:
String Concat( String firstString,
String secondString )
 
String Substring(String originalString,
int fromIndex, int toIndex)
 
String SubstringFrom( String originalString,
int fromIndex )
 
Integer Length( String targetString )
 
String Uppercase( String originalString )
 
String Lowercase( String originalString )
 
String Trim( String originalString )
 
Integer IndexOf( String baseString, String substring )
 
Integer IndexOfFrom(String baseString,
String substring, int fromIndex)
 
Integer LastIndexOf(String baseString,
String substring )
 
Integer LastIndexOfFrom( String baseString,
String substring, int fromIndex )
 
Arithmetic functions:
+
-
*
/
Arithmetic functions take two Number operands and return a Number result. If the actual types of both operands are the same then the return type will be the same as the operand types. Otherwise the return type will be the larger of the operand types, i.e., Long+Integer returns a Long, Float+Integer returns a Float, Float+Double returns a Double.
 
 
 
Mathematical functions:
Double Sqrt( Number )
Double Log( Number )
Double Exp( Number )
Double Random()
Long Round( Number )
Long Mod( Long, Long )
Number Power( Number, Number ) *See note (1) below
Number Abs( Number ) *See note (2) below
Number Max( Number, Number )
Number Min( Number, Number )
Long Floor( Number )
Long Ceiling( Number )
Double Sin( Number )
Double Cos( Number )
Double Tan( Number )
Double ArcSin( Number )
Double ArcCos( Number )
Double ArcTan( Number )
Integer ConvertToInteger( Number )
Float ConvertToFloat( Number )
String ConvertToString( Number )
 
Other Functions
Object ConvertTo( Class desiredClass,
Object existingObject )
 
(1) The return type for Power, Max, and Min is determined by the operand types. If the types of both operands are the same then the return type will be the same as the operand types. Otherwise the return type will be the larger of the operand types, i.e., Max(Long,Integer) returns a Long, Max(Float,Integer) returns a Float, Max(Float,Double) returns a Double.
(2) The return type for Abs is the same as the operand type.
 
 

| Table of Contents |


AgentBuilder is a registered trademark of Reticular Systems, Inc.
Copyright © 1998-2001 Reticular Systems, Inc.