DRCL J-Sim API

drcl.ruv
Class Common

java.lang.Object
  extended bydrcl.ruv.Common

public class Common
extends java.lang.Object

Class that provides common utility methods that facilitate implementing file-system commands in different shells.


Field Summary
static boolean debug
           
static java.lang.String ESCAPE_CHAR_SET
           
 
Constructor Summary
Common()
           
 
Method Summary
static java.lang.String[] getID(Component[] cc_)
          Returns the ID's of the components.
static java.lang.String[] getID(Port[] pp_)
          Returns the ID's of the ports.
static Directory[] resolvePaths(Paths[] pathss_, CommandOption option_, Shell shell_)
          Given path_ and start component of the path, returns the corresponding component/port/wrapped object.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

debug

public static boolean debug

ESCAPE_CHAR_SET

public static final java.lang.String ESCAPE_CHAR_SET
See Also:
Constant Field Values
Constructor Detail

Common

public Common()
Method Detail

resolvePaths

public static Directory[] resolvePaths(Paths[] pathss_,
                                       CommandOption option_,
                                       Shell shell_)
Given path_ and start component of the path, returns the corresponding component/port/wrapped object. If error occurs, a message of String type is returned instead. In addition to the path defined in drcl.comp.IDUtil, the method also accepts WrapperComponent character '@' which is used to refers to the object being wrapped in the Wrapper, it must appear at the end of the path, unless the wrapped object is still a component. If resolveAlias flag is on, the alias is resolved, otherwise the alias's parent is resolved and the alias as well as the parent are returned in an array (array[0]: parent, array[1]: alias (String)). The method ignores obvious errors such as addtional separator character '/' and out of bound parent reference '..'.


getID

public static java.lang.String[] getID(Component[] cc_)
Returns the ID's of the components.


getID

public static java.lang.String[] getID(Port[] pp_)
Returns the ID's of the ports.


DRCL J-Sim API

Copyright © 1998-2003 Distributed Real-time Computing Lab (DRCL). All Rights Reserved.     ~ To J-Sim Home ~