edu.vub.at.actors.net
Class OBJNetwork

java.lang.Object
  extended byedu.vub.at.objects.natives.NATNil
      extended byedu.vub.at.objects.natives.NATByCopy
          extended byedu.vub.at.actors.net.OBJNetwork
All Implemented Interfaces:
ATAbstractGrammar, ATConversions, ATExpression, ATNil, ATObject, ATStatement, java.io.Serializable

public final class OBJNetwork
extends NATByCopy

This class represents the singleton network object which provides methods to interface with AT/2's distribution layer.

Author:
tvcutsem
See Also:
Serialized Form

Field Summary
static OBJNetwork _INSTANCE_
          The singleton instance of the network object
 
Constructor Summary
private OBJNetwork()
          Constructor made private for singleton design pattern
 
Method Summary
 ATNil base_offline()
          def offline() { make the interpreter go offline; return nil } Invoking this method causes remote references to become disconnected.
 ATNil base_online()
          def online() { make the interpreter go online; return nil } After invoking this method, publications and subscriptions can interact with those of remote VMs.
 NATText meta_print()
          Prints out the object in a human-readable way.
 ATObject meta_resolve()
          After deserialization, ensure that the network object remains unique.
 
Methods inherited from class edu.vub.at.objects.natives.NATByCopy
meta_pass
 
Methods inherited from class edu.vub.at.objects.natives.NATNil
asAmbientTalkObject, asJavaClassUnderSymbiosis, asJavaObjectUnderSymbiosis, asNativeBoolean, asNativeException, asNativeFarReference, asNativeFraction, asNativeNumber, asNativeNumeric, asNativeTable, asNativeText, base__opeql__opeql_, base_asActorMirror, base_asAsyncMessage, base_asBegin, base_asBoolean, base_asClosure, base_asDefinition, base_asExpression, base_asFarReference, base_asField, base_asHandler, base_asMessage, base_asMessageCreation, base_asMethod, base_asMirror, base_asNumber, base_asSplice, base_asStatement, base_asStripe, base_asSymbol, base_asTable, base_asUnquoteSplice, base_asVariableAssignment, base_init, base_isBoolean, base_isCallFrame, base_isClosure, base_isFarReference, base_isMessageCreation, base_isMethod, base_isMirror, base_isSplice, base_isStripe, base_isSymbol, base_isTable, base_isUnquoteSplice, base_isVariableAssignment, base_new, createChild, equals, isAmbientTalkObject, isJavaObjectUnderSymbiosis, isNativeBoolean, isNativeField, isNativeText, meta_addField, meta_addMethod, meta_assignField, meta_assignVariable, meta_clone, meta_defineField, meta_doesNotUnderstand, meta_eval, meta_extend, meta_getDynamicParent, meta_getLexicalParent, meta_getStripes, meta_grabField, meta_grabMethod, meta_invoke, meta_isCloneOf, meta_isRelatedTo, meta_isStripedWith, meta_listFields, meta_listMethods, meta_lookup, meta_newInstance, meta_quote, meta_receive, meta_respondsTo, meta_select, meta_send, meta_share, readResolve, toString, writeReplace
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_INSTANCE_

public static final OBJNetwork _INSTANCE_
The singleton instance of the network object

Constructor Detail

OBJNetwork

private OBJNetwork()
Constructor made private for singleton design pattern

Method Detail

base_online

public ATNil base_online()
def online() { make the interpreter go online; return nil } After invoking this method, publications and subscriptions can interact with those of remote VMs.


base_offline

public ATNil base_offline()
def offline() { make the interpreter go offline; return nil } Invoking this method causes remote references to become disconnected.


meta_resolve

public ATObject meta_resolve()
                      throws InterpreterException
After deserialization, ensure that the network object remains unique.

Specified by:
meta_resolve in interface ATObject
Overrides:
meta_resolve in class NATByCopy
Throws:
InterpreterException

meta_print

public NATText meta_print()
                   throws InterpreterException
Description copied from interface: ATObject
Prints out the object in a human-readable way.

Specified by:
meta_print in interface ATObject
Overrides:
meta_print in class NATNil
Throws:
InterpreterException